Remove debug print
This commit is contained in:
parent
ef07645664
commit
7dd72ee5ce
|
@ -167,7 +167,6 @@ class Container:
|
||||||
if self._include:
|
if self._include:
|
||||||
for mount in self._mounts:
|
for mount in self._mounts:
|
||||||
for pattern in self._include:
|
for pattern in self._include:
|
||||||
print(pattern, self._include)
|
|
||||||
if pattern in mount.source:
|
if pattern in mount.source:
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -67,6 +67,26 @@ def snapshots(repository: str, last=True) -> Tuple[str, str]:
|
||||||
return commands.run_capture_std(restic(repository, args))
|
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):
|
def check(repository: str):
|
||||||
return commands.run(restic(repository, [
|
return commands.run(restic(repository, [
|
||||||
"check",
|
"check",
|
||||||
|
|
Loading…
Reference in New Issue