add a way to dump backup status from the command line
This commit is contained in:
parent
b32cb6229b
commit
161d096139
1 changed files with 5 additions and 0 deletions
|
@ -437,6 +437,11 @@ if __name__ == "__main__":
|
|||
# are readable, and b) report if they are up to date.
|
||||
run_duplicity_verification()
|
||||
|
||||
elif sys.argv[-1] == "--status":
|
||||
# Show backup status.
|
||||
ret = backup_status(load_environment())
|
||||
print(rtyaml.dump(ret["backups"]))
|
||||
|
||||
else:
|
||||
# Perform a backup. Add --full to force a full backup rather than
|
||||
# possibly performing an incremental backup.
|
||||
|
|
Loading…
Reference in a new issue