PVC Backup Flow
CommunityEnterpriseThe plugin has the ability to incorporate multiple pathways in order to enhance reader comprehension. They are:
- Pod and PVC annotations:
If the parameter pvcdata is defined in the Fileset and a Pod has bacula annotations referencing PVC backup, the PVCs listed in the Pod annotations will be backed up even if they are not defined in the pvcdata parameter.
The plugin scans all Pods in the namespace specified in the Fileset. If a Pod has the required annotations, the plugin includes the persistent volumes referenced by those annotations, using the corresponding
backup_mode.If a PVC is defined in a Pod annotation, the plugin uses the backup mode specified in the Pod annotation.
Starting with Bacula Enterprise version 18.1.0, if a PVC has a bacula.backup_mode annotation, this value takes precedence over the backup mode indicated in the Pod annotation.
If the pvcdata parameter is defined in the Fileset but no PVC are specified, the plugin performs backup of all PVCs in the specified namespaces.
If a persistent volume is included both in a Pod annotation and the Fileset pvcdata option, the Pod annotation takes precedence.
- Backup mode:
By default, the backup mode is snapshot.
Backup mode defined in the PVC annotation takes precedence over the backup mode defined in the Pod annotations (since version 18.1.0). Then, the backup mode defined in the Pod annotation takes precedence over the backup mode defined in the Fileset. This priority is applicable only to the persistent volume claim (PVC) that is annotated in the Pod.
If a PVC is not compatible with snapshot mode, the plugin attempts the backup using clone mode.
If the PVC clone contains no data (the backup result of the PVC clone is empty), the plugin attempts to perform the backup using the standard mode, as long as the PVC is not compatible with the clone.
Snapshot mode is generally the best option for achieving consistent backups.
Note
Starting with Bacula Enterprise version 16.0.14, the plugin does not back up PVC data if it is in the
PendingorTerminatingstate.
Go back to: Persistent Volume Claim Backup.