Commit 161d0961 authored by Joshua Tauberer's avatar Joshua Tauberer

add a way to dump backup status from the command line

parent b32cb622
...@@ -437,6 +437,11 @@ if __name__ == "__main__": ...@@ -437,6 +437,11 @@ if __name__ == "__main__":
# are readable, and b) report if they are up to date. # are readable, and b) report if they are up to date.
run_duplicity_verification() run_duplicity_verification()
elif sys.argv[-1] == "--status":
# Show backup status.
ret = backup_status(load_environment())
print(rtyaml.dump(ret["backups"]))
else: else:
# Perform a backup. Add --full to force a full backup rather than # Perform a backup. Add --full to force a full backup rather than
# possibly performing an incremental backup. # possibly performing an incremental backup.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment