Total Complexity | 1 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from backuppc_clone.DataLayer import DataLayer |
||
2 | from backuppc_clone.command.BaseCommand import BaseCommand |
||
3 | |||
4 | |||
5 | class VacuumCommand(BaseCommand): |
||
6 | """ |
||
7 | Rebuilds the SQLite database freeing disk space. |
||
8 | |||
9 | vacuum |
||
10 | {clone.cfg : The configuration file of the clone} |
||
11 | """ |
||
12 | |||
13 | # ------------------------------------------------------------------------------------------------------------------ |
||
14 | def _handle_command(self) -> None: |
||
15 | """ |
||
16 | Executes the command. |
||
17 | """ |
||
18 | DataLayer.instance.vacuum() |
||
19 | |||
21 |