tools/qvm-backup-restore: handle VMs selection, not only exclusion
QubesOS/qubes-issues#1214
This commit is contained in:
parent
ce2215c603
commit
e7ee06936a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user