From 1d2990e9380ba81af091c0a460d981a439299dc4 Mon Sep 17 00:00:00 2001 From: Andrew Sorensen Date: Sat, 22 Jun 2013 21:27:58 -0700 Subject: [PATCH] dom0: add option for encryption to qvm-backup --- dom0/qvm-tools/qvm-backup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom0/qvm-tools/qvm-backup b/dom0/qvm-tools/qvm-backup index a8f1d50d..4fef7314 100755 --- a/dom0/qvm-tools/qvm-backup +++ b/dom0/qvm-tools/qvm-backup @@ -40,6 +40,8 @@ def main(): help="Force to run, even with root privileges") parser.add_option ("-d", "--dest-vm", action="store", dest="appvm", help="The AppVM to send backups to") + parser.add_option ("-e", "--encrypt", action="store_true", dest="encrypt", default=False, + help="Encrypts the backup") (options, args) = parser.parse_args () @@ -74,7 +76,7 @@ def main(): exit (0) try: - backup_do_copy(options.appvm, base_backup_dir, files_to_backup, progress_callback=print_progress) + backup_do_copy(options.appvm, base_backup_dir, files_to_backup, progress_callback=print_progress, encrypt=options.encrypt) except QubesException as e: print >>sys.stderr, "ERROR: %s" % str(e) exit(1)