Backup & Restore
TOC
Feature IntroductionPrerequisites:Configure Storage InformationProcedureConfigure Automatic BackupCreate Manual BackupRestore Using BackupDelete BackupFeature Introduction
Database backup and restore are critical functionalities to ensure data security and business continuity. By regularly backing up databases, it is possible to quickly recover data in the event of data loss, corruption, or inadvertent operations, thereby minimizing business interruptions and data loss.
Prerequisites:
Prior to backup, please prepare an external S3 compatible storage based on the volume of business data.
- 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 with your project.
Configure Storage Information
Create S3 secret
Procedure
Configure Automatic Backup
Add automatic backup configuration information in the spec of the mysqlschedules resource.
Create Manual Backup
Prerequisite
Ensure the instance status is Running
-
Create a data backup
-
Wait for the backup to complete and check the backup status
Restore Using Backup
-
Create MySQLRestore to restore data
-
Wait for the restore to complete and check the restore status