From e78512b4b11d77fe80bec3185abb0b3fe6d82610 Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Tue, 2 Feb 2021 19:05:12 +0000 Subject: [PATCH] qvm-backup: dom0 dst relative to cwd of tool, not qubesd --- qubesadmin/tools/qvm_backup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qubesadmin/tools/qvm_backup.py b/qubesadmin/tools/qvm_backup.py index 379ebf5e..607adc32 100644 --- a/qubesadmin/tools/qvm_backup.py +++ b/qubesadmin/tools/qvm_backup.py @@ -103,11 +103,13 @@ def write_backup_profile(output_stream, args, passphrase=None): if passphrase: profile_data['passphrase_text'] = passphrase profile_data['compression'] = args.compression - if args.appvm: + if args.appvm and args.appvm != 'dom0': profile_data['destination_vm'] = args.appvm + profile_data['destination_path'] = args.backup_location else: profile_data['destination_vm'] = 'dom0' - profile_data['destination_path'] = args.backup_location + profile_data['destination_path'] = os.path.join( + os.getcwd(), args.backup_location) yaml.safe_dump(profile_data, output_stream)