All Products
Search
Document Center

PolarDB:Configure backup policies

Last Updated:Mar 28, 2026

PolarDB clusters support two types of backup: data backup and redo log backup. A data backup captures a full snapshot of all cluster data at a specific point in time. A redo log backup records all changes made after the most recent snapshot, enabling point-in-time recovery (PITR).

Configure backup policies to control how often backups run, how long they are retained, where they are stored, and what happens to backups when you delete a cluster. The retention period you set defines your recovery window—a 7-day retention period means you can restore to any point within the past 7 days.

Prerequisites

Before you begin, ensure that you have:

  • A PolarDB cluster with PSL4 or PSL5 storage (required for level-1 and level-2 backup configuration)

  • Access to the PolarDB console

Configure backup policies

  1. Log on to the PolarDB console.

  2. In the upper-left corner, select the region where the cluster is deployed.

  3. Find the cluster and click its ID.

  4. In the left-side navigation pane, choose Settings and Management > Backup and Restoration.

  5. On the Backup Policy Settings tab, click Modify.

  6. In the Modify dialog box, configure the Data Backup, Log Backup, and General policy parameters, then click OK.

Data backup policy

For clusters using PSL4 or PSL5 storage, data backup is organized into two levels: level-1 backup and level-2 backup.

Log backup policy

Log backup is enabled by default and cannot be disabled. Cross-region log backup is available only when cross-region level-2 backup is enabled.

Shortening the log backup retention period reduces your recovery window. For example, a 7-day retention period means you can perform PITR to any point within the past 7 days. Reducing this period also affects the rollback capability of your cluster.
ParameterDescription
Backup MethodSame-region Backup and/or Cross-region Backup.
Same-region Backup and RetentionRetention period for same-region log backups. Range: 3–7,300 days. Select Long-term Retain Backups before Cluster Deletion to retain logs indefinitely.
Destination Backup RegionAutomatically set to the same region as the level-2 backup destination. No configuration needed.
Cross-region Backup and RetentionRetention period for cross-region log backups. Range: 3–7,300 days. Select Long-term Retain Backups before Cluster Deletion to retain logs indefinitely.

General retention policy

Configure what happens to backups when you delete a cluster.

OptionBehavior
When the cluster is deleted, the cluster data is automatically backed up, and all backup sets of the cluster are retained for a long period of timeRuns an automatic backup and retains all existing backups when the cluster is deleted.
When the cluster is deleted, the cluster data is automatically backed up, and the backup set is retained for a long period of timeRuns an automatic backup and retains only the most recent backup when the cluster is deleted.
When the cluster is released, all backup sets of the cluster are deleted immediatelyDeletes all backups immediately when the cluster is deleted.
After the cluster is deleted, level-1 backups automatically become level-2 backups. View retained backups on the Cluster Recycle Bin page. For more information, see Restore a released cluster.
If cross-region backup is enabled and you select When the cluster is released, all backup sets of the cluster are deleted immediately, all cross-region backups are also deleted. For the other two options, the configured cross-region retention policies apply.

API reference

OperationDescription
DescribeBackupPolicyQueries the backup policies of a specified PolarDB cluster.
ModifyBackupPolicyModifies the backup policies of a specified PolarDB cluster.