Create the GaleraBackup CR
To create backups of each Galera database instance, you create a GaleraBackup CR that defines the backup schedule and retention for the MariaDB database clusters.
Schedule database backups Copy linkLink copied!
Create a GaleraBackup CR for each MariaDB Galera database instance that you want to backup. The resource creates a cronjob that defines the backup schedule for the database instance, a PVC, and the associated RBAC resources for retention of the database instance.
Procedure Copy linkLink copied!
Manage PVCs for GaleraBackup CRs Copy linkLink copied!
To separate your final SQL dumps from intermediate binary data, configure a dedicated transfer volume for your volume-level snapshots.
About this task Copy linkLink copied!
By default, the GaleraBackup custom resource (CR) uses a single persistent volume claim (PVC) for both the intermediate binary data for the State Snapshot Transfer (SST) snapshot and the final SQL dumps. If you rely on volume-level backups in addition to using the GaleraBackup CR, only the SQL dump files must be captured in the CSI snapshots. The binary data transferred over SST is transient and does not need to be snapshotted.
If you delete a GaleraBackup CR the associated PVCs are not automatically deleted to preserve the backed up data. If you no longer need to preserve the backup PVCs, use the following command to delete them:
$ oc delete pvc <pvc_name>