By default, the data backup and log backup features are enabled for PolarDB clusters and cannot be disabled. You can adjust the backup policy settings of a PolarDB cluster while ensuring data reliability. Examples:
You can change the level-1 backup method from Standard Backup to High-frequency Backup to shorten the backup cycle, increase the backup frequency, and accelerate data restoration.
You can enable the Cross-region Backup method for level-2 backup to minimize data loss risks caused by natural disasters or hardware failures. This ensures high data availability and meets the requirements for data reliability and security, geo-redundancy recovery, geo-disaster recovery, long-term data archiving, and regulatory compliance.
Procedure
Log on to the PolarDB console. In the left-side navigation pane, click Clusters. In the upper-left corner of the page that appears, select the region of the cluster and click its ID to go to the Basic Information page. In the left-side navigation pane, choose .
On the Backup Policy Settings tab, click Modify to configure the parameters. The backup policy parameters vary based on the storage type.
NoteTo configure the parameters, see the "Data backup policy", "Log backup policy", and "General retention policy" sections of this topic.
PSL4/PSL5
Data backups are categorized into level-1 backups and level-2 backups based on the storage location. Configure the Level-1 Backup, Level-2 Backup, Log Backup, and General parameters.
ESSDs (PL0, PL1, PL2, PL3, and AutoPL)
Data backup files can be stored only on the distributed storage system of the cluster. Data backup files are also called level-1 backups. Configure the Level-1 Backup, Log Backup, and General parameters.
Backup policy parameters
Data backup policy
Data backup varies based on the storage type.
PSL4/PSL5
Level-1 backup
Parameter | Description |
Backup Method | Determines the frequency of automatic data backups. Valid values: Standard Backup (at specified intervals) and High-frequency Backup.
|
Backup Cycle | The days of the week when automatic backups are performed. Note This parameter is required only if you select the Standard Backup (at specified intervals) backup method. |
Backup Start Time Range | The start time range of automatic data backups. Note This parameter is required only if you select the Standard Backup (at specified intervals) backup method. |
Backup Frequency | The frequency of automatic data backups. Valid values:
Note This parameter is required only if you select the High-frequency Backup backup method. |
Backup Retention Period | The retention period of backups. Note
|
Level-2 backup
Parameter | Description |
Level-2 Backup | Specifies whether to enable the level-2 backup feature. Note
|
Backup Method | Valid values: Same-region Backup and Cross-region Backup. Note
|
Backup Cycle | The days of the week when level-2 backups are performed. Note You can select only the days of the week when level-1 backup is performed. |
Same-region Backup and Retention | The retention period of same-region backups. Note
|
Destination Backup Region | The region in which the backup data is to be stored. |
Cross-region Backup and Retention | The retention period of cross-region backups. Note
|
ESSDs (PL0, PL1, PL2, PL3, and AutoPL)
Level-1 backup
Parameter | Description |
Backup Method | Determines the frequency of automatic data backups. Valid values: Standard Backup (at specified intervals) or High-frequency Backup.
|
Backup Cycle | The days of the week when automatic backups are performed. Note This parameter is required only if you select Standard Backup (at specified intervals). |
Backup Start Time Range | The start time range of automatic data backups. Note This parameter is required only if you select Standard Backup (at specified intervals). |
Backup Frequency | The frequency of automatic backups. Valid values:
Note This parameter is required only if you select High-frequency Backup. |
Backup Retention Period | The retention period of backups. Note
|
High-frequency backup examples
For example, when a high-frequency backup is configured (the backup frequency is set to Every 4 Hours) at 08:00 on March 1, the system automatically creates the first backup within 4 hours from 08:00 to 12:00. Then, the system continues to create a backup every 4 hours.
If you select High-frequency Backup, all backups are retained for 24 hours. For backups older than 24 hours, only the first backup after midnight is retained.
If the current time is 16:00 on March 4, the system retains the following backups:
The backups created during the most recent 24 hours (from 16:00 on March 3 to 16:00 on March 4).
The backup created between 00:00 and 04:00 on March 3.
The backup created between 00:00 and 04:00 on March 2.
The backup created between 08:00 and 12:00 on March 1.
At 20:00 on March 4 (after 4 hours), the system retains the following backups:
Backups created in the most recent 24 hours (from 20:00 on March 3 to 20:00 on March 4).
The backup created between 00:00 and 04:00 on March 3.
The backup created between 00:00 and 04:00 on March 2.
The backup created between 08:00 and 12:00 on March 1.
Log backup policy
Each redo log file of the database is stored in on-premises storage. Log backup varies based on the storage type.
PSL4/PSL5
Parameter | Description |
Backup Method | Valid values: Same-region Backup and Cross-region Backup. Note
|
Same-region Backup and Retention | The retention period of same-region log backups. Note
|
Destination Backup Region | The value of this parameter is the same as that of the Destination Backup Region parameter for level-2 backup. You do not need to configure this parameter. |
Cross-region Backup and Retention | The retention period of cross-region log backups. Note
|
ESSDs (PL0, PL1, PL2, PL3, and AutoPL)
Parameter | Description |
Log Retention Period (Days) | The retention period for log backups. Note
|
General retention policy
The general retention policy of a cluster defines how backup files are retained when the cluster is released.
Parameter | Description |
When Cluster Is Deleted | The backup retention policy that applies when a cluster is deleted.
Note
|
Related API operations
API | Description |
Queries the data backup policy of a PolarDB cluster. | |
Modifies the data backup policy of a PolarDB cluster. | |
Queries the log backup policy of a PolarDB cluster. | |
Modifies the log backup policy of a PolarDB cluster. |