This topic describes two backup and recovery methods and explains how to use them.
Overview
PolarDB-X 1.0 provides instance-level and database-level backup and recovery. You can back up an instance automatically or manually. Two backup methods are available: fast backup and consistent backup. To recover an instance, you can restore data to a new instance from an existing backup set.
Backup methods
PolarDB-X 1.0 provides two backup methods, fast backup and consistent backup, both of which support data recovery. The following table compares the two methods.
|
Backup method |
Benefits |
Limitations |
Use cases |
|
fast backup |
|
In database and table sharding scenarios, this method ensures data consistency for each RDS instance but does not guarantee it globally. |
Ideal for routine backup and recovery. |
|
consistent backup |
In database and table sharding scenarios, this method guarantees global data consistency. |
|
Suitable for backup and recovery scenarios that require strict data consistency, such as in the financial industry and for core online transaction processing (OLTP) businesses. |
Limitations
-
The PolarDB-X 1.0 automatic backup policy is disabled by default. You must enable it manually. For more information, see Configure an automatic backup policy.
-
The PolarDB-X 1.0 log backup feature depends on the underlying RDS instances. The log backup policy that you configure in the PolarDB-X 1.0 console is automatically synchronized to all underlying RDS instances. After configuring the policy, do not modify it in the RDS console to avoid invalidating your backup sets.
-
PolarDB-X 1.0 backup and recovery requires log backups. You must enable the log backup policy before you perform a backup or recovery to ensure your backup sets are valid.
-
Do not perform DDL operations during a backup to prevent backup and recovery failures.
-
During the backup process, ensure that the underlying RDS instances of your PolarDB-X 1.0 instance are running to avoid backup failures.
-
Ensure that all data tables have a primary key to maintain data accuracy during the recovery from a consistent backup.
-
Depending on resource availability for PolarDB-X 1.0 and RDS, the recovery process may automatically change the instance type and availability zone of the instance. After the instance is restored, verify and adjust the configuration as needed to avoid disrupting your business.
-
You are billed for the restored instance based on its actual billing method and instance type. For more information, see PolarDB-X 1.0 pricing.
Configure an automatic backup policy
-
Log on to the PolarDB for Xscale console, and select the region where your instance is located.
-
On the Instances page, click the name of your instance.
-
In the left-side navigation pane, click Backup and Restoration.
-
Click the Backup Policy tab to view the current automatic backup policy. The PolarDB-X 1.0 automatic backup policy is disabled by default. If this is your first time on this page, you must configure the policy before it can take effect.
-
Click Edit to configure the automatic backup policy.
-
Set the parameters for the automatic backup policy and click OK.
Configure local log settings
-
Log on to the PolarDB for Xscale console, and select the region where your instance is located.
-
On the Instances page, click the name of your instance.
-
In the left-side navigation pane, click Backup and Restoration.
-
Click Local Log Settings.
-
Click Edit to modify the local log configuration.
-
Click OK to save the configuration.
NoteA PolarDB-X 1.0 instance does not have a built-in log backup capability; instead, the policy you configure is applied to all underlying RDS instances.
Back up data
-
Log on to the PolarDB for Xscale console, and select the region where your instance is located.
-
On the Instances page, click the name of your instance.
-
In the left-side navigation pane, click Backup and Restoration.
-
Click Data Backup.
-
Select a Backup Method and a Backup Level.
NotePolarDB-X 1.0 supports only RDS-level backups. If all your databases reside on a single RDS instance, the entire RDS instance is backed up even if you select only one database. The size of the resulting backup set is the same as if you had selected all databases.
-
Click OK to submit the backup task.
-
Click the button in the upper-right corner to view the progress of the backup task. You can view successfully created backup sets on the Data Backup Set tab.
Recover data
-
Log on to the PolarDB for Xscale console, and select the region where your instance is located.
-
On the Instances page, click the name of your instance.
-
In the left-side navigation pane, click Backup and Restoration.
-
Click the Data Backup Set tab.
-
Choose a data recovery method:
-
To recover data from a specific backup set, find the backup set in the list and click Restore in the Actions column.
-
To perform a point-in-time recovery, click the Data Recovery button in the upper-right corner of the page.
-
-
Click Precheck to verify whether a valid backup set is available for recovery. If the precheck fails, you cannot recover the data.
-
After the precheck succeeds, click Activate Now. You are then directed to the order confirmation page.
-
After you confirm the order, click Activate Now to start the data recovery. You can view the progress of the recovery task in the task list in the upper-right corner of the page.
-
After the recovery is complete, the restored instance appears on the Instances page.