Remove debug print

This commit is contained in:
Einar Forselv 2019-12-04 23:24:56 +01:00
parent ef07645664
commit 7dd72ee5ce
2 changed files with 20 additions and 1 deletions

View File

@ -167,7 +167,6 @@ class Container:
if self._include:
for mount in self._mounts:
for pattern in self._include:
print(pattern, self._include)
if pattern in mount.source:
break
else:

View File

@ -67,6 +67,26 @@ def snapshots(repository: str, last=True) -> Tuple[str, str]:
return commands.run_capture_std(restic(repository, args))
def forget(repository: str, daily: str, weekly: str, monthly: str, yearly: str):
return restic(repository, [
'forget',
'--keep-daily',
daily,
'--keep-weekly',
weekly,
'--keep-monthly',
monthly,
'--keep-yearly',
yearly,
])
def prune(repository: str):
return restic(repository, [
'prune',
])
def check(repository: str):
return commands.run(restic(repository, [
"check",