dom0: allow the user to set the AppVM

This commit is contained in:
Andrew Sorensen 2013-06-22 20:59:07 -07:00
parent c2f157c2d2
commit 3d7af2f7f5

View File

@ -38,6 +38,8 @@ def main():
help="Exclude the specified VM from backup (might be repeated)")
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")
(options, args) = parser.parse_args ()
@ -72,7 +74,7 @@ def main():
exit (0)
try:
backup_do_copy("storage", 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)
except QubesException as e:
print >>sys.stderr, "ERROR: %s" % str(e)
exit(1)