From 161d0961391d96f33fa6e877d28ebc2de9fcea5b Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Thu, 26 Nov 2015 14:34:07 +0000 Subject: [PATCH] add a way to dump backup status from the command line --- management/backup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/management/backup.py b/management/backup.py index cd005010..aebfbbc7 100755 --- a/management/backup.py +++ b/management/backup.py @@ -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.