PolarDB enables data and log backups by default for all clusters. You cannot disable these features, but you can adjust backup policies to meet your business needs. For example:
-
Switch level-1 backups from Standard Backup (at specified intervals) to High-frequency Backup to shorten the backup cycle, increase backup density, and speed up data recovery.
-
Enable Cross-region Backup for level-2 backups to minimize data loss from natural disasters or hardware failures and meet compliance requirements for off-site disaster recovery and long-term archiving.
NoteOnly PolarDB for MySQL Enterprise Edition supports cross-region backup.
Procedure
-
Log on to the PolarDB console. Select the region of your cluster. On the Clusters page, click the ID of the target cluster. In the left-side navigation pane, choose .
-
On the Backup Policy Settings page, click Edit. Available parameters vary by storage type:
NoteParameter details: Data backup policy, Log backup policy, and General backup policy.
PSL4/PSL5
Data backups are split into level-1 and level-2 by storage location. Configure the Level-1 Backup, level-2 backup, Log Backup, and General parameters.
ESSD (PL0, PL1, PL2, PL3, and AutoPL)
Data backups are stored locally only (level-1 backups). Configure the Level-1 Backup, Log Backup, and General parameters.
Backup policy parameters
Data backup policy
Data backup settings vary by storage type:
PSL4/PSL5
Level-1 backup
|
Parameter |
Description |
|
Backup method |
Automatic backup frequency. Select standard backup or High-frequency Backup.
|
|
Backup cycle |
Schedule for automatic data backups. Note
This parameter is required only when you select standard backup. |
|
Backup start time |
Start time for automatic data backups. Note
This parameter is required only when you select standard backup. |
|
Backup frequency |
Frequency of automatic data backups. Options:
Note
This parameter is required only when you select High-frequency Backup. |
|
Backup retention period |
Retention period for backup sets. Note
|
Level-2 backup
|
Parameter |
Description |
|
Backup switch |
Enable or disable level-2 backup. Note
|
|
Backup method |
You can select Same-region Backup or Cross-region Backup. Note
|
|
Backup cycle |
Backup cycle for level-2 backups. Note
Only days scheduled for level-1 backups are selectable. |
|
Same-region backup retention |
Retention period for same-region backups. Note
|
|
Cross-region backup region |
Destination region for cross-region backups. |
|
Cross-region backup retention |
Retention period for cross-region backups. Note
|
ESSD (PL0, PL1, PL2, PL3, and AutoPL)
Level-1 backup
|
Parameter |
Description |
|
Backup method |
Automatic backup frequency. Select standard backup or High-frequency Backup.
|
|
Backup cycle |
Schedule for automatic data backups. Note
This parameter is required only when you select Standard Backup (at specified intervals). |
|
Backup start time |
Start time for automatic data backups. Note
This parameter is required only when you select Standard Backup (at specified intervals). |
|
Backup frequency |
Frequency of automatic data backups. Options:
Note
This parameter is required only when you select High-frequency Backup. |
|
Backup retention period |
Retention period for backup sets. Note
|
High-frequency backup example
Example: you enable High-frequency Backup at 08:00 on March 1 with a frequency of every 4 hours. The system completes the first backup within 4 hours (08:00–12:00 on March 1) and continues at 4-hour intervals.
With High-frequency Backup enabled, all backups from the last 24 hours are retained. For older backups, only the first set after 00:00 each day is kept; others are deleted.
-
If the current time is 16:00 on March 4, the system retains the following backup sets:
-
Backup sets completed within the last 24 hours (from 16:00 on March 3 to 16:00 on March 4).
-
The backup set completed between 00:00 and 04:00 on March 3.
-
The backup set completed between 00:00 and 04:00 on March 2.
-
The backup set completed between 08:00 and 12:00 on March 1.

-
-
Four hours later, at 20:00 on March 4, the system retains the following backup sets:
-
Backup sets completed within the last 24 hours (from 20:00 on March 3 to 20:00 on March 4).
-
The backup set completed between 00:00 and 04:00 on March 3.
-
The backup set completed between 00:00 and 04:00 on March 2.
-
The backup set completed between 08:00 and 12:00 on March 1.

-
Log backup policy
The log backup policy saves redo log files to offline storage. Options vary by storage type:
PSL4/PSL5
|
Parameter |
Description |
|
Backup method |
You can select Same-region Backup or Cross-region Backup. Note
|
|
Same-region backup retention |
Retention period for same-region log backups. Note
|
|
Cross-region backup region |
Uses the same region as cross-region level-2 backups. No separate configuration needed. |
|
Cross-region backup retention |
Retention period for cross-region log backups. Note
|
ESSD (PL0, PL1, PL2, PL3, and AutoPL)
|
Parameter |
Description |
|
Log backup retention |
Retention period for log backups. Note
|
General backup policy
The general backup policy controls how backup sets are handled when a cluster is released.
|
Parameter |
Description |
|
When Cluster Is Deleted |
Retention policy for backups after cluster release.
Note
|
API reference
|
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. |