Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Don't allow accurate backups for VMWARE plugin.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Marco van Wieringen committed Oct 6, 2015
1 parent 1838362 commit dbb1b37
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vmware_plugin/BareosFdPluginVMware.py
Expand Up @@ -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']

Expand Down

0 comments on commit dbb1b37

Please sign in to comment.