From f264b76a61007b5a89d0f29bc55ab189be90b793 Mon Sep 17 00:00:00 2001 From: Rafal Wojtczuk Date: Mon, 1 Aug 2011 11:14:35 +0200 Subject: [PATCH] qvm-backup: handle standaloneVM properly Do not attempt to copy apps.templates; copy apps/ instead. --- dom0/qvm-tools/qvm-backup | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dom0/qvm-tools/qvm-backup b/dom0/qvm-tools/qvm-backup index c855a537..18abd56d 100755 --- a/dom0/qvm-tools/qvm-backup +++ b/dom0/qvm-tools/qvm-backup @@ -121,7 +121,12 @@ def main(): files_to_backup += file_to_backup(vm.icon_path) if vm.is_updateable(): - files_to_backup += file_to_backup(vm.dir_path + "/apps.templates") + if os.path.exists(vm.dir_path + "/apps.templates"): + # template + files_to_backup += file_to_backup(vm.dir_path + "/apps.templates") + else: + # standaloneVM + files_to_backup += file_to_backup(vm.dir_path + "/apps") if os.path.exists (vm.firewall_conf): files_to_backup += file_to_backup(vm.firewall_conf) if os.path.exists(vm.dir_path + '/whitelisted-appmenus.list'):