From 6dac2286488d449f853eb2e0a1d61567000506da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 31 Mar 2015 05:54:41 +0200 Subject: [PATCH] backup: backup any template marked to do so, even if installed by rpm --- core/backup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/backup.py b/core/backup.py index 18e1fa48..580e6796 100644 --- a/core/backup.py +++ b/core/backup.py @@ -125,7 +125,8 @@ def backup_prepare(vms_list = None, exclude_list = None, selected_vms = [vm for vm in all_vms if vm.include_in_backups] appvms_to_backup = [vm for vm in selected_vms if vm.is_appvm() and not vm.internal] netvms_to_backup = [vm for vm in selected_vms if vm.is_netvm() and not vm.qid == 0] - template_vms_worth_backingup = [vm for vm in selected_vms if (vm.is_template() and not vm.installed_by_rpm)] + template_vms_worth_backingup = [vm for vm in selected_vms if ( + vm.is_template() and vm.include_in_backups)] dom0 = [ qvm_collection[0] ] vms_list = appvms_to_backup + netvms_to_backup + template_vms_worth_backingup + dom0