backup: fixed reinitialisation of all backup flags in qubes.xml
This commit is contained in:
parent
3e4637415a
commit
6c7322d324
@ -907,9 +907,14 @@ def backup_prepare(base_backup_dir, vms_list = None, exclude_list = [], print_ca
|
|||||||
|
|
||||||
print_callback(s)
|
print_callback(s)
|
||||||
|
|
||||||
vm.backup_content = True
|
# Initialize backup flag on all VMs
|
||||||
vm.backup_size = vm.get_disk_utilization()
|
for vm in qvm_collection.values():
|
||||||
vm.backup_path = vm.dir_path.split(os.path.normpath(qubes_base_dir)+"/")[1]
|
vm.backup_content = False
|
||||||
|
|
||||||
|
if vm in vms_for_backup:
|
||||||
|
vm.backup_content = True
|
||||||
|
vm.backup_size = vm.get_disk_utilization()
|
||||||
|
vm.backup_path = vm.dir_path.split(os.path.normpath(qubes_base_dir)+"/")[1]
|
||||||
|
|
||||||
qvm_collection.save()
|
qvm_collection.save()
|
||||||
# FIXME: should be after backup completed
|
# FIXME: should be after backup completed
|
||||||
|
Loading…
Reference in New Issue
Block a user