[backup] allowing to specify the Timeshift mode: rsync or btrfs

This commit is contained in:
Vinicius Moreira
2020-04-28 18:29:30 -03:00
parent f860be1b07
commit 636469215c
6 changed files with 17 additions and 6 deletions

View File

@@ -9,5 +9,5 @@ def delete_all_snapshots(root_password: str) -> SimpleProcess:
return SimpleProcess(['timeshift', '--delete-all', '--scripted'], root_password=root_password)
def create_snapshot(root_password: str) -> SimpleProcess:
return SimpleProcess(['timeshift', '--create', '--scripted'], root_password=root_password)
def create_snapshot(root_password: str, mode: str) -> SimpleProcess:
return SimpleProcess(['timeshift', '--create', '--scripted', '--{}'.format(mode)], root_password=root_password)