Backup & Restore
Database backup and recovery are vital functions for ensuring data security and business continuity. By regularly backing up the database, data can be quickly restored in the event of data loss, corruption, or operational errors, thereby minimizing business disruption and data loss.
Prerequisites
Before performing a backup, please declare storage location. You may choose one of the following two methods.
-
Persistent Volume Claim (PVC, Kubernetes PersistentVolumeClaim): A persistent volume claim encapsulates the request configuration for storage resources and automatically matches suitable persistent volumes in the cluster based on the requested access mode, storage size, and other information.
-
External S3 Storage: S3 (Amazon Simple Storage Service) is an object storage service provided by Amazon. If you need to back up data to your own S3 bucket, please confirm with the administrator that the S3 storage has been integrated into your project.
Procedure
- Configure Storage Location
-
Using PVC for storage
-
Using S3 for storage
-
Create S3 secret
-
Configure S3 storage
-
-
Automatic Backup Add the automatic backup configuration in the CR's spec.pxc.backup, where the schedule field defines the backup cycle. The
<storageName>field refers to the backup storage name created in Step 1. -
Manual Backup
-
Check Backup Status
-
Restore Using Backup