qvm-backup-{,restore} - support for standalone VMs

Backup root.img instead of (non-existing) root-cow.img
This commit is contained in:
Marek Marczykowski 2011-03-18 22:24:08 -04:00
parent c461835ea7
commit a6ee9d66f5
2 changed files with 3 additions and 3 deletions

View File

@ -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 = ""

View File

@ -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);