mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2026-11-17 02:25:41 +00:00
snapshots --last
This commit is contained in:
1 parent
eaf8b5cc78
commit
6bc88957e7
1 file changed
+5
-4
@@ -60,10 +60,11 @@ def backup_from_stdin(repository: str, filename: str, source_command: List[str])
|
||||
return 0 if (source_exit == 0 and dest_exit == 0) else 1
|
||||
|
||||
|
||||
def snapshots(repository: str) -> Tuple[str, str]:
|
||||
return commands.run_capture_std(restic(repository, [
|
||||
"snapshots",
|
||||
]))
|
||||
def snapshots(repository: str, last=True) -> Tuple[str, str]:
|
||||
args = ["snapshots"]
|
||||
if last:
|
||||
args.append('--last')
|
||||
return commands.run_capture_std(restic(repository, args))
|
||||
|
||||
|
||||
def check(repository: str):
|
||||
|
||||
Reference in new issue
Block a user