qvm-backup-{,restore} - support for standalone VMs
Backup root.img instead of (non-existing) root-cow.img
This commit is contained in:
parent
c461835ea7
commit
a6ee9d66f5
@ -124,8 +124,8 @@ def main():
|
|||||||
#files_to_backup += file_to_backup(vm.dir_path + "/apps")
|
#files_to_backup += file_to_backup(vm.dir_path + "/apps")
|
||||||
|
|
||||||
if vm.is_updateable():
|
if vm.is_updateable():
|
||||||
sz = vm.get_disk_usage(vm.rootcow_img)
|
sz = vm.get_disk_usage(vm.root_img)
|
||||||
files_to_backup += file_to_backup(vm.rootcow_img, sz)
|
files_to_backup += file_to_backup(vm.root_img, sz)
|
||||||
vm_sz += sz
|
vm_sz += sz
|
||||||
|
|
||||||
s = ""
|
s = ""
|
||||||
|
@ -285,7 +285,7 @@ def main():
|
|||||||
restore_vm_file (backup_dir, vm.conf_file)
|
restore_vm_file (backup_dir, vm.conf_file)
|
||||||
|
|
||||||
if vm.is_updateable():
|
if vm.is_updateable():
|
||||||
restore_vm_file (backup_dir, vm.rootcow_img)
|
restore_vm_file (backup_dir, vm.root_img)
|
||||||
|
|
||||||
elif vm.is_template():
|
elif vm.is_template():
|
||||||
restore_vm_dir (backup_dir, vm.dir_path, qubes_templates_dir);
|
restore_vm_dir (backup_dir, vm.dir_path, qubes_templates_dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user