Skip to content

Commit

Permalink
qvm-backup: dom0 dst relative to cwd of tool, not qubesd
Browse files Browse the repository at this point in the history
  • Loading branch information
rustybird committed Feb 2, 2021
1 parent 0f42fd0 commit e78512b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qubesadmin/tools/qvm_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e78512b

Please sign in to comment.