From adbec8e843a04c4d7e5c5b04cc197b0d355af4e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 15 Jan 2014 05:01:02 +0100 Subject: [PATCH] backups/qvm-backup: force encryption if backup is sent to AppVM (#769) --- qvm-tools/qvm-backup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qvm-tools/qvm-backup b/qvm-tools/qvm-backup index 4e4a5ce4..d78a0795 100755 --- a/qvm-tools/qvm-backup +++ b/qvm-tools/qvm-backup @@ -41,7 +41,7 @@ def main(): parser.add_option ("--force-root", action="store_true", dest="force_root", default=False, 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") + help="The AppVM to send backups to (implies -e)") parser.add_option ("-e", "--encrypt", action="store_true", dest="encrypt", default=False, help="Encrypts the backup") parser.add_option ("-z", "--compress", action="store_true", dest="compress", default=False, @@ -97,6 +97,7 @@ def main(): print "-> Available space: {0}".format(size_to_human(backup_fs_free_sz)) else: + options.encrypt = True appvm = qvm_collection.get_vm_by_name(options.appvm) if appvm is None: print >>sys.stderr, "ERROR: VM {0} does not exist".format(options.appvm)