mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-12-14 09:52:21 +00:00
bug: forget and prune was never executed
This commit is contained in:
@@ -68,7 +68,7 @@ def snapshots(repository: str, last=True) -> Tuple[str, str]:
|
|||||||
|
|
||||||
|
|
||||||
def forget(repository: str, daily: str, weekly: str, monthly: str, yearly: str):
|
def forget(repository: str, daily: str, weekly: str, monthly: str, yearly: str):
|
||||||
return restic(repository, [
|
return commands.run(restic(repository, [
|
||||||
'forget',
|
'forget',
|
||||||
'--keep-daily',
|
'--keep-daily',
|
||||||
daily,
|
daily,
|
||||||
@@ -78,13 +78,13 @@ def forget(repository: str, daily: str, weekly: str, monthly: str, yearly: str):
|
|||||||
monthly,
|
monthly,
|
||||||
'--keep-yearly',
|
'--keep-yearly',
|
||||||
yearly,
|
yearly,
|
||||||
])
|
]))
|
||||||
|
|
||||||
|
|
||||||
def prune(repository: str):
|
def prune(repository: str):
|
||||||
return restic(repository, [
|
return commands.run(restic(repository, [
|
||||||
'prune',
|
'prune',
|
||||||
])
|
]))
|
||||||
|
|
||||||
|
|
||||||
def check(repository: str):
|
def check(repository: str):
|
||||||
|
|||||||
Reference in New Issue
Block a user