From 96d5b47cce2bab5be657391fd3adb8bc53ce5464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 26 Sep 2014 03:46:49 +0200 Subject: [PATCH] qvm-tools/qvm-backup: add --debug option --- qvm-tools/qvm-backup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qvm-tools/qvm-backup b/qvm-tools/qvm-backup index 723b2b00..36218f16 100755 --- a/qvm-tools/qvm-backup +++ b/qvm-tools/qvm-backup @@ -26,6 +26,7 @@ from qubes.qubes import QubesException from qubes.backup import backup_prepare, backup_do from qubes.qubesutils import size_to_human from optparse import OptionParser +import qubes.backup import os import sys import getpass @@ -62,6 +63,8 @@ def main(): "list-message-digest-algorithms'") parser.add_option ("-z", "--compress", action="store_true", dest="compress", default=False, help="Compress the backup") + parser.add_option ("--debug", action="store_true", dest="debug", + default=False, help="Enable (a lot of) debug output") (options, args) = parser.parse_args () @@ -95,6 +98,8 @@ def main(): options.encrypt = True if options.no_encrypt: options.encrypt = False + if options.debug: + qubes.backup.BACKUP_DEBUG = True files_to_backup = None try: files_to_backup = backup_prepare(