Data disaster recovery supports databases on Alibaba Cloud, self-managed on ECS, on-premises, or on other clouds.
Notes
If source databases or tables have an inefficient schema, large tables, or large fields, a low-specification backup schedule can lead to insufficient resources and trigger backup exceptions. To avoid this, select a higher specification when you create the backup schedule.
Procedure
Product-automated backup
Purchase logical backup schedule
Log in to DMS 5.0.
-
In the top navigation bar, choose .
NoteIf you use the DMS console in simple mode, move the pointer over the
icon in the upper-left corner of the DMS console and choose . Select a region at the top of the page. On the page, click the Product-automated backup tab. Then, click the ID of the target data source to go to its details page.
On the Backup Policies page, click Configure Backup Policy.
On the Select Backup Schedule page, click Purchase Backup Schedule to go to the DBS purchase page.
Configure the following parameters and click Buy Now.
Parameter
Description
Product type
Select Backup Schedule (Subscription).
Region
Select the region where you want to store the backup data.
NoteThe backup schedule and the ECS instance must be in the same region.
Data source type
Currently, only MySQL is supported.
Specification
The backup schedule specifications that you want to use. Higher specifications offer higher backup and restoration performance. DBS supports the following backup schedule specifications: micro, small, medium, large, and xlarge. The xlarge specification type provides extra large specifications without an upper limit on the amount of backup data.
NoteIf your database instance, such as one in a production environment, requires a high-performance backup schedule to quickly run backup and restoration tasks, we recommend selecting the xlarge or large specification.
If you do not have high requirements for backup and restoration performance (speed), you can calculate and select the most cost-effective specification for your backup schedule. For more information, see Select a backup schedule specification.
If the databases and tables that you want to back up involve issues such as unreasonable schemas, large tables, and large fields, the resources of a backup instance of lower specifications may be insufficient to complete the backup. As a result, a backup error occurs. We recommend that you purchase a backup instance of higher specifications to prevent backup errors.
Backup method
Select Logical Backup.
Storage space
You do not need to specify a storage capacity when you create the backup schedule. You are charged based on the amount of data stored in the built-in storage of DBS. For more information about billing, see Storage fees.
Resource Group
Select the default or a custom Resource Group to manage your backup schedules.
Quantity
Select the required number of backup schedules. You must create a separate backup schedule for each database instance. For example, to back up both Database Instance A and Database Instance B, you must purchase two backup schedules.
Subscription duration
Select the subscription duration for the backup schedule.
On the Confirm Order page, confirm the order details, read and select the Terms of Service, and then click Pay.
After paying, return to the Select Backup Schedule page and click Paid. Your new backup schedule appears.
Configure backup policy
On the Select Backup Schedule page, select the backup schedule that you want to configure and click Next.
On the Select Database and Table page, select the databases or tables to back up, click the
icon to move them to the Selected Objects box, and then click Submit.After you submit the settings, go to the Backup Policies page. On the Logical Backup tab, click Start to start the backup.
Clicking Start immediately runs a full and an incremental backup.
NoteIf you want to perform other operations first, such as modifying the backup policy, you can choose not to start the backup immediately. The system automatically starts the backup later based on the schedule defined in the backup policy.
User-automated backup
Only MySQL 5.5 data sources are supported.
Only the China (Hangzhou) region is supported.
Configure backup source and upload backup files
Log in to DMS 5.0.
-
In the top navigation bar, choose .
NoteIf you use the DMS console in simple mode, move the pointer over the
icon in the upper-left corner of the DMS console and choose . Select a region at the top of the page. On the On-premise Database and Cloud Database from Third-party Provider tab, click the button to add a data source based on its type.
Click Add Data Source. In the dialog box that appears, configure the following parameters, select the target backup schedule, and then click Next.
Parameter
Description
Data source name
Use a descriptive name for easy identification.
Engine type
The type of the database engine. Only MySQL is supported.
Engine version
Select the version of the database engine.
Engine parameters
{"lower_case_table_names":1}
If no backup schedule is available, click Purchase Backup Schedule to purchase one.
Description
Product type
Select Backup Schedule (Subscription). The pay-as-you-go billing method is not supported.
Region
Select the region where you want to store the backup data.
Data source type
Select MySQL.
Specification
Select xmicro. For more information about the free data quota provided by this specification, see Backup schedule specifications.
Backup method
Select Physical Backup.
Storage space
You do not need to specify a storage capacity when you create the backup schedule. You are charged based on the amount of data stored in the built-in storage of DBS. For more information about billing, see Storage fees.
Resource Group
Select the default or a custom Resource Group to manage your backup schedules.
Quantity
Select the number of backup schedules to purchase based on your needs. You must create a separate backup schedule for each database instance. For example, to back up both Database Instance A and Database Instance B, you must purchase two backup schedules.
Subscription duration
Select the subscription duration for the backup schedule.
Upload the backup set to the specified bucket. For more information, see User guide for uploading data for automated backups.
After the upload is complete, click OK.
View backup information
On the User-automated backup tab, click the ID of the target data source.


Configure backup policy
On the User-automated backup tab, find the target data source and click View Backup Policy in the Actions column.


After you configure the policy, click OK.
View and download backup data
On the User-automated backup tab, click the ID of the target data source.
In the left-side navigation pane, click Backup Data.
NoteAfter you run the script to upload data and create the data source, the system synchronizes each new backup set to the Backup Data page.
Find the target backup set and click Download in the Actions column to obtain a download link and download the backup set to your local computer.
Create restoration task
A restoration task requires a generated backup set on the data backup page with a status of Completed.
On the User-automated backup tab, click the ID of the target data source.
In the left-side navigation pane, click Backup Data. Then, click Create Restore Task and manually configure the restoration parameters.
Parameter
Description
Task name
Enter a descriptive name for the restoration task for easy identification.
Restore to
Select the restoration destination. By default, data is restored to a new ApsaraDB RDS instance.
Database location
Select the location of the database. The default value is RDS.
Instance region
Select the region of the instance. Currently, only the China (Hangzhou) region is supported.
VPC
Select a VPC.
VSwitch
Select a VSwitch.
Instance edition
Select the edition of the destination instance.
Instance specifications
Select the specification of the destination instance.
Storage space
Select the required storage space.
Restore mode
Select the method to restore data. Only point-in-time recovery is supported.
Restore time
Select a point in time to which you want to restore the data. The available time range is displayed next to the Restore Mode parameter.
After you configure the parameters, click Submit. A restoration task is created for the selected point in time and appears in the task list.
View restoration tasks
On the User-automated backup tab, click the ID of the target data source.
In the left-side navigation pane, choose .
Click the instance ID in the Restoration Result column to go to the Basic Information page of the restored ApsaraDB RDS instance.
View recovery drills
On the User-automated backup tab, click the ID of the target data source.
In the left-side navigation pane, click Recovery Drill.
Recovery drill overview metrics
The recovery drill overview includes metrics such as Recovery Task Success Rate, Average Recovery Duration, Data Backup Drill Coverage Rate, and Log Backup Drill Coverage Rate.
Metric
Description
Recovery task success rate
The success rate of restoration tasks that restore data to points in time within the specified time range.
Average recovery duration
The average duration of successful restoration tasks within the specified time range.
Data backup drill coverage rate
The coverage rate of data recovery drills performed on open source MySQL or ApsaraDB RDS for MySQL instances within the specified time range.
Log backup drill coverage rate
The coverage rate of log recovery drills performed on open source MySQL or ApsaraDB RDS for MySQL instances within the specified time range.
Recovery drill timeline
The timeline displays the details of recovery drills at different points in time within the specified time range. Click a point on the timeline to view details for that specific drill.
Data backup drill details
Click Data Backup to view a list of recovery drill details for data backups. Click the instance ID in the Drill Result column to go to the Basic Information page of the restored RDS instance.
Click Log Backup to view a list of recovery drill details for log backups.