Backup and restoration

Updated at:
Copy as MD

PolarDB-X 1.0 supports instance-level and database-level backup and restoration. Backups run in automatic or manual mode, and you can restore data to a new PolarDB-X 1.0 instance or a new ApsaraDB for RDS (RDS) instance from an existing backup set.

How it works

PolarDB-X 1.0 backup and restoration depends on log backup, which is delegated to the underlying RDS instances. The log backup policy you configure in the PolarDB-X 1.0 console is automatically synchronized to all underlying RDS instances.

When you restore data at the instance level, PolarDB-X 1.0 automatically adjusts the instance type and zone based on current inventory. After restoration completes, confirm and change the instance type and zone if needed to avoid impacting your workload.

Choose a backup method

PolarDB-X 1.0 provides two backup methods. Choose based on your consistency requirements and version.

Backup methodBackup levelRestore optionsVersion requirementPerformance impactBest for
Fast backupInstance or databaseBy backup set or by point in timeAll versionsMinimalRoutine business workloads
Consistent backupInstance or databaseBy backup set onlyVersion 5.3.8 and laterLocks distributed transactions for seconds; SQL response time has sub-second jitter during the lock windowFinancial and high-consistency transaction workloads

Key difference: Fast backup ensures per-shard data consistency but not global consistency across shards. Consistent backup guarantees global data consistency — suitable when your workload spans multiple shards and data accuracy across all shards is critical.

Run consistent backups during off-peak hours to minimize the impact of the distributed transaction lock on response times.

Prerequisites

Before you begin, ensure that you have:

  • All underlying RDS instances mounted to your PolarDB-X 1.0 instance running normally

  • All tables with primary keys (required for consistent backup and restoration accuracy)

  • Log backup enabled — backup and restoration depends on it

Set an automatic backup policy

The automatic backup policy is disabled by default. Enable it before relying on scheduled backups.

  1. Log on to the PolarDB-X 1.0 consolePolarDB-X console and select a region.

  2. In the left-side navigation pane, click Instances, then click the instance name.

  3. In the left-side navigation pane, choose Data Recovery > Backup and Recovery.

  4. Click the Backup Policy tab.

  5. Click Edit to configure the policy. If you set Backup Level to Database

  6. Set the backup parameters and click OK.

PolarDB-X 1.0 itself does not support log backup. The log backup policy you configure here is applied to all underlying RDS instances. Do not modify this policy directly in the RDS console — doing so may break backup set validity.

Configure local binary logs

Local binary log settings control how binary logs are retained on the underlying RDS instances.

  1. Log on to the PolarDB-X console and select a region.

  2. In the left-side navigation pane, click Instances, then click the instance name.

  3. In the left-side navigation pane, choose Data Recovery > Backup and Recovery.

  4. Click the Local Log Settings tab.

  5. Click Edit. In the Local Binlog Settings dialog box, modify the settings.

  6. Click OK.

Local binary log settings are applied to all underlying RDS instances.

Run a manual backup

Important

Do not run Data Definition Language (DDL) operations during backup. DDL operations during a backup can cause instance-level backup and restoration to fail.

  1. Log on to the PolarDB-X 1.0 console and select a region.

  2. In the left-side navigation pane, click Instances, then click the instance name.

  3. In the left-side navigation pane, choose Data Recovery > Backup and Recovery.

  4. Click Data Backup.

  5. Set Backup Method (Fast Backup or Consistent Backup) and Backup Level.

  6. Click OK to submit the backup task.

  7. Click the Data Backup Set tab to view available backup sets. Track progress in the Task Progress list in the upper-right corner.

Restore data

Instance-level restoration creates a new PolarDB-X 1.0 instance and new underlying RDS instances from the backup data.

Instance-level restoration is billed based on the actual billing method and instance type of the restored instance. For pricing details, see Pricing.
  1. Log on to the and select a region.

  2. In the left-side navigation pane, click Instances, then click the instance name.

  3. In the left-side navigation pane, choose Data Recovery > Backup and Recovery.

  4. In the upper-right corner, click Data Recovery(Original Clone Instance).

  5. In the dialog box, select a restoration method and configure the parameters:

    • By backup set: Select a valid backup set from the list.

    • By time: Select a specific point in time and a restoration level. Available only with fast backup.

  6. Click Precheck to verify that a valid backup set is available. If the precheck fails, restoration cannot proceed — check that log backup is enabled and that a valid backup set exists for the target time range.

  7. After the precheck succeeds, on the Verification for Recovery page, click Enable to start restoration.

  8. Track progress in the Task Progress list in the upper-right corner. After restoration completes, the new instance appears on the PolarDB-X 1.0 Instance Management page.