All Products
Search
Document Center

PolarDB:Backup method 1: Automatic backup

Last Updated:Oct 19, 2023

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

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
  3. Find the cluster and click the cluster ID.
  4. In the left-side navigation pane, choose Settings and Management > Restoration.
  5. On the Backup Policy Settings tab, click Modify.
  6. 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.
  7. After you complete the backup settings, click OK.

Related API operations

OperationDescription
CreateBackupCreates a full backup of a specified PolarDB for MySQL cluster.
DescribeBackupsQueries the backup information of a specified PolarDB for MySQL cluster.
DeleteBackupDeletes the backups of a specified PolarDB for MySQL cluster.
DescribeBackupPolicyQueries the automatic backup policy of a specified PolarDB for MySQL cluster.
ModifyBackupPolicyModifies the automatic backup policy of a specified PolarDB for MySQL cluster.