From dbb1b37187b3b7d1d90593b45842a2c96a29613b Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Mon, 5 Oct 2015 09:21:51 +0200 Subject: [PATCH] Don't allow accurate backups for VMWARE plugin. We need to replay each full, differential and incremental on top of each other to be able to reconstruct the whole VMDK. If we allow accurate and as we generate a new file name every time BAREOS will think the previous files are deleted in the backup and as such only restore the lastest data and not the previous backups. --- vmware_plugin/BareosFdPluginVMware.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vmware_plugin/BareosFdPluginVMware.py b/vmware_plugin/BareosFdPluginVMware.py index d19ed0d..6f424ef 100644 --- a/vmware_plugin/BareosFdPluginVMware.py +++ b/vmware_plugin/BareosFdPluginVMware.py @@ -117,6 +117,13 @@ def start_backup_job(self, context): if check_option_bRC != bRCs['bRC_OK']: return check_option_bRC + accurate_enabled = bareosfd.GetValue(context, bVariable['bVarAccurate']) + if accurate_enabled != 0: + bareosfd.JobMessage( + context, bJobMessageType['M_FATAL'], + "start_backup_job: Accurate backup not allowed please disable in Job\n") + return bRCs['bRC_Error'] + if not self.vadp.connect_vmware(context): return bRCs['bRC_Error']