By default, automatic backup is enabled. PolarDB for MySQL automatically backs up data based on the specified backup policy. This way, data security is ensured by periodic and scheduled backups. When a cluster is created, PolarDB for MySQL automatically backs up data once a day. You can configure parameters such as the frequency of automatic backup and the retention period of backup files in the console based on your business requirements.
Note
- The backup files that are automatically created cannot be deleted. You can configure the retention period of automatic backup files in the Data Backup Retention Period section in the Backup Settings dialog box.
- If you modify data after snapshots of your cluster are created, the amount of snapshot backups increases. As a result, the backup cost increases. If data is modified during defragmentation, the amount of snapshot backups increases. For example, if your database has 100 GB of data and you modify 10 GB of the data after a snapshot is created,
- you are charged for 100 GB of data storage and 10 GB of snapshot storage.
- If you choose to retain the snapshots when you delete your database, you are charged for 100 GB of snapshot storage.
Configure an automatic backup policy
- Log on to the PolarDB console.
- In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
- Find the cluster and click the cluster ID.
- In the left-side navigation pane, choose .
- On the Backup Policy Settings tab, click Modify.
- In the Backup Policy Settings dialog box, configure the parameters in the Data Backup, Log Backup, and General sections. For more information about the parameters, see Configure backup settings.
- After you complete the backup settings, click OK.
Related API operations
Operation | Description |
CreateBackup | Creates a full backup of a specified PolarDB for MySQL cluster. |
DescribeBackups | Queries the backup information of a specified PolarDB for MySQL cluster. |
DeleteBackup | Deletes the backups of a specified PolarDB for MySQL cluster. |
DescribeBackupPolicy | Queries the automatic backup policy of a specified PolarDB for MySQL cluster. |
ModifyBackupPolicy | Modifies the automatic backup policy of a specified PolarDB for MySQL cluster. |