All Products
Search
Document Center

Data Management:Create a backup by using a disaster recovery data source

Last Updated:Mar 28, 2026
This feature is in internal preview and is available only to users added to the whitelist. If the entry point is not visible in the DMS console, create a backup by using a backup schedule list instead.

Data Disaster Recovery lets you back up Alibaba Cloud databases, self-managed databases on Elastic Compute Service (ECS) instances, and cloud databases from third-party providers — all from a single place. This topic covers the full setup: adding a data source, authorizing your database credentials, and configuring a backup policy.

Before you begin

Make sure that:

  • Your database is one of the following supported types:

    • Alibaba Cloud databases: ApsaraDB RDS for MySQL, ApsaraDB RDS for PostgreSQL, ApsaraDB RDS for SQL Server, or PolarDB for MySQL

    • Self-managed databases on ECS instances: MySQL

    • Cloud databases from third-party providers: MySQL

  • If you are operating as a Resource Access Management (RAM) user, the AliyunDBSFullAccess policy is attached to your RAM user. For details, see Grant permissions to a RAM user

Limitations

  • Only logical backup is supported. Physical backup is not supported. For a comparison of backup modes, see Logical backup, physical backup, and snapshot.

  • Cross-region backup is not supported. The backup schedule and the data source must reside in the same region.

  • Backup tasks affect database performance. Schedule them during off-peak hours.

Step 1: Add your data source

How you add a data source depends on where your database is hosted.

Alibaba Cloud databases

Data Disaster Recovery automatically syncs Alibaba Cloud databases to the Cloud Database tab on the Disaster Recovery Data Source page. No manual action is required.

Self-managed databases on ECS instances

  1. Log on to the DMS console V5.0.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.

    If you use the DMS console in simple mode, move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.
  3. Select a region. On the Self-managed Database on ECS tab, click Add Data Source.

  4. Select an ECS instance and click Next.

  5. In the Configure Backup Schedule step, configure the following parameters and click OK.

    ParameterDescription
    Engine typeThe database engine type. Set this to MySQL.
    Backup methodThe backup method. Set this to Logical Backup. For details, see Logical backup, physical backup, and snapshot.
    PortThe port used to connect to the database. The default port for MySQL is 3306.
    Data source nameA descriptive name that is easy to identify.

    image

On-premises databases and third-party cloud databases

For on-premises databases, databases in data centers, and cloud databases from third-party providers, choose one of the following options:

  • Automatic backup for services: Data Disaster Recovery connects directly to your database and backs it up automatically. This is the recommended approach for most cases.

  • Automatic backup for users: You upload backup sets to Data Disaster Recovery yourself. This option is for cases where the data format and protocol reside locally. For setup details, see Automatic backup for users.

Set up automatic backup for services

  1. Log on to the DMS console V5.0.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.

    If you use the DMS console in simple mode, move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.
  3. Select a region. On the On-premise Database and Cloud Database from Third-party Provider tab, choose Automatic Backup for Services and click Add Data Source.

  4. In the dialog box, configure the following parameters and click OK.

    ParameterDescription
    Engine typeThe database engine type. Set this to MySQL.
    Backup methodThe backup method. Set this to Logical Backup. For details, see Logical backup, physical backup, and snapshot.
    Network typeHow Data Disaster Recovery connects to your database:<br>- Public Network (Classic Network): Connects over the internet using public IP addresses.<br>- Proprietary Network (VPC/Leased Line): Connects over a private network. For details on VPC, see What is VPC?.<br>
    Important

    Click Configure Whitelist in the console to add the required CIDR blocks to your database's security settings so that Data Disaster Recovery can reach your database. For details, see Manually add the CIDR blocks of Data Disaster Recovery to the security settings of self-managed databases.

    Proprietary Network (VPC/Leased Line)The VPC in which the database is deployed. This parameter appears only when Network type is set to Proprietary Network (VPC/Leased Line).
    Source database IP addressThe endpoint of the database to back up.
    PortThe port used to connect to the database. The default port for MySQL is 3306.
    Data source nameA descriptive name that is easy to identify.

    image

Step 2: Authorize your database account

After your data source appears on the Disaster Recovery Data Source page, provide database account credentials so that Data Disaster Recovery can connect and run backups.

The account must have the permissions required for backup and restore operations. For the full list, see Account permissions.

If the account or password of the source database changes, update the credentials and re-authorize to keep backups running correctly.

Authorization status

Authorize an Alibaba Cloud database

  1. Log on to the DMS console V5.0.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.

    If you use the DMS console in simple mode, move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.
  3. Select a region. On the Cloud Database tab, click the data source ID to open its details page.

  4. Choose Backup Policies > Logical Backup, then click Account Authorization.

  5. Enter the Database Account and Password, then click Authorize.

  6. After verification completes, click OK.

Authorize a self-managed database on an ECS instance

  1. Log on to the DMS console V5.0.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.

    If you use the DMS console in simple mode, move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.
  3. Select a region. On the Self-managed Database on ECS tab, find the data source and click Account Authorization in the Actions column.

  4. Enter the Database Account and Password, then click Authorize.

  5. After verification completes, click OK. When the credentials are valid, Authorized appears in the Authorization Status of Data Source column.

Authorize an on-premises or third-party cloud database

  1. Log on to the DMS console V5.0.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.

    If you use the DMS console in simple mode, move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.
  3. Select a region. Choose On-premise Database and Cloud Database from Third-party Provider > Automatic Backup for Services, find the data source, and click Account Authorization in the Actions column.

    For data sources on the Automatic Backup for Users tab, account authorization is not required. For details, see Automatic backup for users.
  4. Enter the Database Account and Password, then click Authorize.

  5. After verification completes, click OK. When the credentials are valid, Authorized appears in the Authorization Status of Data Source column.

Step 3: Configure a backup policy

A backup policy defines when Data Disaster Recovery backs up your database and how long backup sets are retained. Once configured, the system runs data backups and log backups automatically.

Default backup policy

When you configure a backup schedule, Data Disaster Recovery applies these defaults:

SettingDefaultConfigurable?
Log backupEnabled; logs are readableNo — log backup cannot be disabled
Log backup retention30 daysNo
Data backupEnabled; runs every Monday, Wednesday, Friday, and SundayYes — modify after initial setup
Data backup retention7 days (valid range: 7–3650 days)Yes — modify after initial setup

To change the data backup cycle, start time, or retention period after your initial setup, see Modify the backup policy.

Billing

Configuring a backup policy creates a backup schedule, which is a billable resource.

ChargeDescription
Backup schedule feeCharged based on region, specification, quantity, and subscription duration. The price on the purchase page is authoritative.
Backup feeEach backup schedule includes a free storage quota. If backup data exceeds the free quota, the excess is charged. The free quota varies by specification. For details, see Backup fees.
Storage feeCharged based on the total backup data stored in built-in storage. For details, see Storage fees.
Storage fees are not charged at purchase time. You are charged based on actual backup usage.

Choose a specification

Backup schedule specifications determine backup and restore throughput. Available specifications: micro, small, medium, large, and xlarge.

  • For production databases or any workload where fast restore matters, use xlarge or large.

  • For databases with large tables, complex schemas, or large fields, use a higher specification to prevent backup failures caused by insufficient resources.

  • For non-critical workloads, choose based on data volume and cost requirements. For guidance, see Select a backup schedule type.

The xlarge specification has no upper limit on backup data volume.

Pay-as-you-go billing is not supported for backup schedules. Only subscription pricing is available.

Configure a backup policy for an Alibaba Cloud database

Purchase a backup schedule

  1. Log on to the DMS console V5.0.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.

    If you use the DMS console in simple mode, move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.
  3. Select a region. On the Cloud Database tab, click the data source ID to open its details page.

  4. Choose Backup Policies > Logical Backup and click Configure Backup Policy.

  5. In the Select Backup Schedule step, click Purchase Backup Schedule.

  6. On the purchase page, configure the following parameters and click Buy Now.

    ParameterDescription
    Product typeSelect Backup Schedule.
    RegionThe region in which to store backup data. This must match the region of the data source.
    Data source typeSelect MySQL.
    SpecificationThe backup schedule specification. Higher specifications provide higher backup and restore performance. See Choose a specification for guidance.
    Backup methodSelect Logical Backup.
    Storage sizeNo capacity selection is required. Storage is charged based on actual data volume. See Storage fees.
    Resource groupThe resource group for the backup schedule. Use the default or select one based on your requirements.
    QuantityThe number of backup schedules to purchase. Each database instance requires its own backup schedule. For example, to back up two database instances, purchase two backup schedules.
    Subscription durationThe subscription duration for the backup schedule.
  7. On the Confirm Order page, review the order, accept the terms of service, and click Pay.

After payment, return to the Select Backup Schedule step and click Paid to view the new backup schedule.

image

Create the backup policy

  1. In the Select Backup Schedule step, select the backup schedule and click Next.

    image

  2. In the Select Database and Table step, select the databases and tables to back up, click the image icon to move them to Selected Objects, and click Submit.

    image..png

  3. On the Backup Policies page, click the Logical Backup tab and then click Start. Clicking Start immediately triggers a full backup and an incremental backup.

    This step is optional. If you skip it, Data Disaster Recovery initiates the first backup automatically based on the backup policy.

    image

Configure a backup policy for a self-managed database on an ECS instance

Purchase a backup schedule

  1. Log on to the DMS console V5.0.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.

    If you use the DMS console in simple mode, move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.
  3. Select a region. On the Self-managed Database on ECS tab, click the data source ID to open its details page.

  4. On the Backup Policies page, click Configure Backup Policy.

  5. In the Select Backup Schedule step, click Purchase Backup Schedule.

  6. On the purchase page, configure the following parameters and click Buy Now.

    ParameterDescription
    Product typeSelect Backup Schedule.
    RegionThe region in which to store backup data. This must match the region of the ECS instance.
    Data source typeSet to MySQL.
    SpecificationThe backup schedule specification. See Choose a specification for guidance.
    Backup methodSelect Logical Backup.
    Storage sizeNo capacity selection is required. Storage is charged based on actual data volume. See Storage fees.
    Resource groupThe resource group for the backup schedule.
    QuantityThe number of backup schedules to purchase. Each database instance requires its own backup schedule.
    Subscription durationThe subscription duration for the backup schedule.
  7. On the Confirm Order page, review the order, accept the terms of service, and click Pay.

After payment, return to the Select Backup Schedule step and click Paid to view the new backup schedule.

image

Create the backup policy

  1. In the Select Backup Schedule step, select the backup schedule and click Next.

    image

  2. In the Select Database and Table step, select the databases and tables to back up, click the image icon to move them to Selected Objects, and click Submit.

    image..png

  3. On the Backup Policies page, click the Logical Backup tab and then click Start. Clicking Start immediately triggers a full backup and an incremental backup.

    This step is optional. If you skip it, Data Disaster Recovery initiates the first backup automatically based on the backup policy.

    image

Configure a backup policy for an on-premises or third-party cloud database

This section applies to data sources using Automatic Backup for Services. For Automatic Backup for Users, see Automatic backup for users.

Purchase a backup schedule

  1. Log on to the DMS console V5.0.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.

    If you use the DMS console in simple mode, move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.
  3. Select a region. Choose On-premise Database and Cloud Database from Third-party Provider > Automatic Backup for Services and click the data source ID to open its details page.

  4. On the Backup Policies page, click Configure Backup Policy.

  5. In the Select Backup Schedule step, click Purchase Backup Schedule.

  6. On the purchase page, configure the following parameters and click Buy Now.

    ParameterDescription
    Product typeSelect Backup Schedule.
    RegionThe region in which to store backup data. The backup schedule must reside in the same region as the data source.
    Data source typeSet to MySQL.
    SpecificationThe backup schedule specification. See Choose a specification for guidance.
    Backup methodSelect Logical Backup.
    Storage sizeNo capacity selection is required. Storage is charged based on actual data volume. See Storage fees.
    Resource groupThe resource group for the backup schedule.
    QuantityThe number of backup schedules to purchase. Each database instance requires its own backup schedule.
    Subscription durationThe subscription duration for the backup schedule.
  7. On the Confirm Order page, review the order, accept the terms of service, and click Pay.

After payment, return to the Select Backup Schedule step and click Paid to view the new backup schedule.

image

Create the backup policy

  1. In the Select Backup Schedule step, select the backup schedule and click Next.

    image

  2. In the Select Database and Table step, select the databases and tables to back up, click the image icon to move them to Selected Objects, and click Submit.

    image..png

  3. On the Backup Policies page, click the Logical Backup tab and then click Start. Clicking Start immediately triggers a full backup and an incremental backup.

    This step is optional. If you skip it, Data Disaster Recovery initiates the first backup automatically based on the backup policy.

    image

Modify the backup policy

Adjust the backup cycle, start time, or retention period at any time after the initial setup.

  • Only the data backup policy can be modified. Log backup settings cannot be changed: log backup is always enabled, readable, and retained for 30 days.

  • Changes take effect immediately. Existing backup sets are retained based on the updated retention policy.

  • Schedule backups during off-peak hours to minimize performance impact on your database.

Steps:

  1. Click the data source ID to open its details page.

    • For Alibaba Cloud databases: choose Backup Policies > Logical Backup and click Edit.

    • For self-managed databases on ECS, on-premises databases, and third-party cloud databases: on the Backup Policies page, click Edit.

  2. In the dialog box, update the data backup policy and click OK.

View backup data

Alibaba Cloud databases

On the Backup Data page, click the Logical Backup tab to view data backups and log backups.

image

Self-managed databases on ECS, on-premises databases, and third-party cloud databases

On the Backup Data page, view data backups and log backups directly.

image

FAQ

Does backing up a database affect its performance?

Yes. Backup tasks consume database resources. Schedule backups during off-peak hours to reduce impact. For more information, see What is the impact of backup on databases?

Can I upgrade or downgrade the specification of a backup schedule after purchase?

No. Specification changes are not supported after purchase.

What's next