tools/qvm-backup-restore: handle VMs selection, not only exclusion

QubesOS/qubes-issues#1214
This commit is contained in:
Marek Marczykowski-Górecki 2017-07-17 23:34:03 +02:00
parent ce2215c603
commit e7ee06936a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -239,6 +239,11 @@ def main(args=None):
except qubesadmin.exc.QubesException as e:
parser.error_runtime(str(e))
if args.vms:
backup.options.exclude += [vm for vm in restore_info
if vm not in args.vms]
restore_info = backup.restore_info_verify(restore_info)
print(backup.get_restore_summary(restore_info))
try: