Data disaster recovery supports Alibaba Cloud databases, self-managed databases on ECS instances, on-premises databases, and databases on third-party cloud platforms.
Usage notes
If the source database contains tables with poorly designed schemas, large tables, or large fields, a backup instance with low specifications can exhaust its resources and trigger backup exceptions. To prevent these issues, select a backup instance with higher specifications.
Procedure
Product automatic backup
Purchase a backup schedule (logical backup)
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 tab, click , and then click the ID of the target data source to open its details page.
-
On the Backup Policy page, click Configure Backup Policy.
-
On the Select Backup Schedule page, click Purchase Backup Schedule to open the Database Backup Service (DBS) buy page.
-
Configure the following parameters and click Buy Now in the lower-right corner.
Parameter
Description
Product type
Select Backup Schedule (Subscription).
Backup schedule region
Select the region where you want to store the backup data.
NoteMake sure that the backup schedule and the ECS instance are 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.
Note-
If your database instance, such as a production database, requires a high-performance backup schedule for fast backup and restore tasks, we recommend selecting the xlarge or large specification.
-
If high backup and restore performance is not a priority, you can calculate your requirements to select the most cost-effective backup schedule specification. For more information, see How to 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 purchasing the backup schedule. You are charged based on the amount of data stored in the DBS built-in storage. For more information about billing, see Storage fees.
Resource group
Select the default or a custom resource group to facilitate the management of backup schedules.
Quantity
Select the desired quantity. A separate backup schedule is required for each database instance. For example, to back up 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, review the order details, read and agree to the Terms of Service, and then click Pay.
After you complete the payment, return to the Select Backup Schedule page from Step 5 and click Paid. The newly purchased backup schedule appears in the list.
Configure a backup policy
-
On the Select Backup Schedule page, select the backup schedule that you want to configure and click Next.
-
On the Select Databases and Tables page, select the databases or tables that you want to back up, click
to move them to the Selected Objects box, and then click Submit. -
After the settings are submitted, go to the Backup Policy page. On the Logical Backup tab, click Start to begin the backup.
After you click Start, the system immediately initiates a full backup task and an incremental backup task.
NoteIf you need to perform other operations first, such as modifying the backup policy, you can choose not to start the backup immediately. The system will automatically start the backup at the time specified in the backup policy.
User-provided automatic backup
-
Currently, only MySQL 5.5 data sources are supported.
-
Currently, only the China (Hangzhou) region is supported.
Configure backup source and upload 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-premises and third-party cloud databases tab, choose how 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
Enter a descriptive name.
Engine type
Database engine type. 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 go to the DBS buy page and purchase one.
Description
Product type
Select Backup Schedule (Subscription). The pay-as-you-go billing method is not supported.
Backup schedule region
Select the region where you want to store the backup data.
Data source type
Select MySQL.
Specification
Select xmicro. For information about the free data quota included with this specification, see Backup schedule specifications.
Backup method
Select physical backup.
Storage space
You do not need to specify a storage capacity when purchasing the backup schedule. You are charged based on the amount of data stored in the DBS built-in storage. For more information about billing, see Storage fees.
Resource group
Select the default or a custom resource group to facilitate the management of backup schedules.
Quantity
Select the desired quantity. A separate backup schedule is required for each database instance. For example, to back up 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 details, see Upload data for user-provided automatic backups.
-
After the upload is complete, click OK.
View backup information
On the User-provided automatic backup tab, click the ID of the target data source.
On the data source details page, the left-side navigation pane provides options including Basic Information, Backup Policy, Backup Data, Recovery Drill, and Task Management. By default, the Basic Information tab is displayed, where you can view fields such as Data Source ID, Data Source Name, Resource Group ID, Data Source Type, Backup Method, Access Time, Engine Type, Data Source Authorization Status, Source Database Endpoint, and Port.
Configure a backup policy
-
On the User-provided automatic backup tab, find the target data source and click View Backup Policy in the Actions column.
In the Backup Policy dialog box, configure Full backup retention period (7 to 7,300 days, default: 30), Log backup retention period (7 to 7,300 days, default: 7), and Snapshot retention period (1 to 7,300 days, default: 7), and then click OK.
-
After you complete the configuration, click OK.
View and download backup data
-
On the User-provided automatic backup tab, click the ID of the target data source.
-
In the left-side navigation pane, click Backup Data.
NoteAfter you run the data upload script and create the data source, the backup management system synchronizes any newly generated backup sets to the Backup Data page.
-
Find the target backup set and click Download in the Actions column to download it to your local computer.
Create a restore task
To create a restore task, a generated backup set must exist on the Backup Data page, and its status must be Completed.
-
On the User-provided automatic backup tab, click the ID of the target data source.
-
In the left-side navigation pane, click Backup Data, and then click Create Restore Task to configure the restore parameters.
Parameter
Description
Restore task name
Enter a descriptive name for the restore task.
Restore to
Select the destination for the restored instance. By default, data is restored to a new RDS instance.
Database location
Select the location of the database. The default value is RDS.
Instance region
Select the region where the instance resides. Currently, only China (Hangzhou) is supported.
VPC
Select the VPC.
vSwitch
Select the vSwitch.
Instance series
Select the instance series for the restored instance.
Instance specification
Select the instance specification for the restored instance.
Storage space
Select the required storage space.
Restore mode
Select a restore mode. Currently, only point-in-time restore is supported.
Restore time
Select a point in time. For the available time range, see the information next to the Restore mode parameter.
-
After configuring the task, click Submit. A restore task is created for the selected point in time, and its details appear on the restore task page.
View restore tasks
-
On the User-provided automatic backup tab, click the ID of the target data source.
-
In the left-side navigation pane, choose .
-
Click the instance ID in the Restore Result column to go to the Basic Information page of the restored RDS instance.
View recovery drills
-
On the User-provided automatic backup tab, click the ID of the target data source.
-
In the left-side navigation pane, click Recovery Drill.
Recovery drill overview
View the recovery drill overview, which includes Restore task success rate, Average restore duration, Data backup drill coverage, and Log backup drill coverage.
Parameter
Description
Restore task success rate
The success rate of restore tasks initiated within the filtered time range.
Average restore duration
The average time taken for successful restore tasks within the filtered time range.
Data backup drill coverage
The percentage of data backups from open-source MySQL or RDS for MySQL instances that have undergone a recovery drill within the filtered time range.
Log backup drill coverage
The percentage of log backups from open-source MySQL or RDS for MySQL instances that have undergone a recovery drill within the filtered time range.
Recovery drill timeline
The timeline displays recovery drill details. You can click a point on the timeline to view information for that specific time.
Recovery drill details for backup data
Click Data Backup to view 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 the list of recovery drill details for log backups.