All Products
Search
Document Center

Data Management:Data Disaster Recovery (formerly DBS) FAQ

Last Updated:Mar 30, 2026

This page answers common questions about Data Disaster Recovery—covering billing, service activation, backup configuration, permissions, and troubleshooting.

Billing FAQ

What are the billable items of a backup schedule?

A backup schedule has up to four billable items:

  • Type: You pay for the backup schedule's specifications when you purchase a subscription. The free quota for backup data, unit price, and backup and restoration performance all vary by schedule type. For details, see Backup fees.

  • Storage (optional): If you set the storage type to DBS Storage for a subscription backup schedule, you're charged for the storage space used and the duration it's stored. For details, see Storage fees.

  • Backup (optional): If the amount of backed-up data exceeds the free quota for your schedule type, the excess is charged. For details, see Backup fees.

  • Sandbox (optional): Data Disaster Recovery lets you create sandbox instances for disaster recovery of self-managed MySQL databases. Once enabled, sandbox storage fees apply based on data volume; sandbox instance fees apply based on specifications and usage duration. For details, see Pricing.

You cannot create a pay-as-you-go backup schedule.

Which fees can storage plans and network plans offset?

Storage plans

Data Disaster Recovery offers two types of storage plans, available in various sizes (100 GB, 500 GB, 1 TB, and 500 TB) and subscription periods (one month, six months, and one year). If your storage exceeds your plan quota, you're charged for the excess on a pay-as-you-go basis.

Plan type What it offsets
Storage plans for CDM sandbox instances Sandbox storage fees in your account. For pricing details, see Sandbox fees.
Storage plans for backup schedule instances Storage usage for backup schedule instances within the same Alibaba Cloud account. For details, see Built-in storage and OSS.

Network plans

Data Disaster Recovery network plans work in all regions worldwide.

What it offsets Description
Network traffic for cross-region backups Offsets network traffic consumed by cross-region backups of ApsaraDB RDS for MySQL, ApsaraDB RDS for PostgreSQL, ApsaraDB RDS for SQL Server, PolarDB for MySQL, PolarDB for PostgreSQL, and ApsaraDB for MongoDB databases. The offset is calculated using region-specific offset factors.
Network traffic for backup set downloads Offsets network traffic consumed by backup set downloads of ApsaraDB RDS for MySQL, ApsaraDB RDS for PostgreSQL, and ApsaraDB RDS for SQL Server databases. The offset is calculated using region-specific offset factors.

For offset rules, offset factors, examples, and purchase methods, see Use storage plans and Use network plans.

Am I charged for an unused backup schedule?

Yes. Even if a backup schedule hasn't generated new backup sets, existing backup sets still occupy storage. You're still charged storage fees.

To avoid unnecessary costs:

  • Pay-as-you-go: Release the backup schedule after saving relevant data and downloading historical backup sets. After release, no backup or storage fees are charged. See Release or unsubscribe from a backup schedule.

  • Subscription (pre-paid): If you plan to stop using a subscription backup schedule for an extended period but want to retain historical backup sets, you can pause or restart the backup schedule. After you pause the schedule, no new backup fees are charged, but storage fees will continue to apply to subscription backup schedules that use DBS Storage.

  • Subscription: If you want to keep historical backup sets but stop running backups, pause the backup schedule. No backup fees are charged while paused, but storage fees still apply if the storage type is DBS Storage. See Pause or start a backup schedule.

Pausing a subscription backup schedule doesn't change its subscription duration.
Storage fees apply only when the storage type is DBS Storage.

For how to release a backup schedule or reduce backup file sizes, see View and reduce the size of backup data, Delete backup files or reduce the size of backup files, and Use the backup for deleted instances feature.

Can I switch between subscription and pay-as-you-go billing?

No. You cannot change the billing method of a backup schedule from pay-as-you-go to subscription, or from subscription to pay-as-you-go.

Can I release a pay-as-you-go backup schedule?

Yes. See Release or unsubscribe from a backup schedule.

Can I unsubscribe from a subscription backup schedule?

No. You cannot release or unsubscribe from a subscription backup schedule. See Unsubscribe from billable features.You cannot unsubscribe from a backup schedule

What happens when a storage plan or network plan expires?

Storage plans and network plans become invalid after they expire and can no longer offset storage or network traffic fees. Your backup schedules and existing backup data are not affected.

What happens when a backup schedule expires or payment is overdue?

See Service expiration and overdue payments.

How do I reduce the cost of a subscription backup schedule?

Purchase storage plans to offset built-in storage fees for backup schedules within the same Alibaba Cloud account. See Built-in storage and OSS.

What are the billable items if I haven't used backup in the console?

Data Disaster Recovery also provides backup and restoration for ApsaraDB RDS, PolarDB, ApsaraDB for MongoDB, Redis, Tair, and AnalyticDB for PostgreSQL. Check whether you're being charged for backup and restoration features used through those services. See Pricing.

Fix errors for an abnormal backup schedule

Description

A backup schedule shows an abnormal state on the Backup Schedules page.

image..png

Cause

An abnormal backup schedule means at least one task in the schedule has failed—most commonly a full backup or incremental backup task.

When a task fails, Data Disaster Recovery does not automatically restart it, to protect your business from unexpected impacts.
Troubleshoot the error as soon as possible. If the issue persists after following the steps below, contact technical support in the DingTalk group (ID: 35585947).

Solutions

Choose a resolution based on whether you've identified the root cause:

Scenario Resolution Notes
You've identified and fixed the root cause (for example, the source instance was shut down and is now running again). Restart the abnormal task. For full backup tasks, evaluate the impact on the source database and restart during off-peak hours. If the error is fixed, the task state changes to Completed. If the backup schedule is still abnormal, check for other failed tasks. If the error persists, the task returns to Error and you need to investigate further.
You've identified and fixed the root cause, and the next scheduled backup can handle recovery. Ignore the error. The backup runs in the next backup window. If the error is fixed, the task state changes to Completed. If the backup schedule is still abnormal, check for other failed tasks.
You cannot determine the root cause. Hover over the exclamation point (!) icon in the Status column to view the error details, then search Common errors and troubleshooting for Data Disaster Recovery for a solution. If the error isn't covered in that topic or the issue persists, contact technical support in the DingTalk group (ID: 35585947).

Procedure

  1. In the left-side navigation pane, click Backup Schedules. Find the abnormal backup schedule and click Rectify in the Status column. You're directed to the task list for the failed task type: Full Data page for full backup tasks, or Incremental Data page for incremental backup tasks.

    image..png

  2. Select a resolution based on your situation:

    • Restart: Find the failed task and click Restart Backup in the Status column. > Note: For full backup tasks, evaluate the impact on the source database before restarting. Restart during off-peak hours. image..png

    • Ignore the error: Find the failed task and click Ignore Error in the Status column. image..png

    • Look up the error: For a full backup task, hover over the exclamation point (!) icon in the Status column, then click View Exception Fixing Suggestions. For an incremental backup task, click View Incremental Exception Fixing Suggestions at the top of the Incremental Data page. Both options direct you to Common errors and troubleshooting for Data Disaster Recovery. > Note: If the error isn't described in that topic, it may be caused by a different type of task failure. Contact technical support in the DingTalk group (ID: 35585947). image.png

Activate Data Disaster Recovery

First-time users must complete two steps: assign the AliyunServiceRoleForDBS role to Data Disaster Recovery, and activate Object Storage Service (OSS). These authorizations let Data Disaster Recovery access and manage your databases and store backup data in OSS without affecting backup schedule performance.

Step 1: Assign the AliyunServiceRoleForDBS role

The AliyunServiceRoleForDBS is a Resource Access Management (RAM) service-linked role that allows Data Disaster Recovery to access Alibaba Cloud database services—including ApsaraDB RDS, ApsaraDB for MongoDB, Redis, PolarDB clusters, and self-managed databases hosted on Elastic Compute Service (ECS) instances. For details about service-linked roles, see Service-linked roles.

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

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

    In simple mode, hover over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Security and Specifications (DBS) > Disaster Recovery for Data (DBS) > Disaster Recovery Data Source.
  3. In the dialog box that appears, click Authorize DBS SLR.

    If no dialog box appears after you log on, skip this step and create a backup schedule directly. See Manage a backup by using a disaster recovery data source or Create a backup by using a backup schedule list.
  4. Click OK.

The AliyunServiceRoleForDBS role is created. To delete the role later, see Delete a RAM role.

Step 2: Activate OSS

Activating OSS is free. After activation, Data Disaster Recovery can store backup data in OSS.

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

  2. In the top navigation bar, choose Security and Specifications (DBS) > Disaster Recovery for Data (DBS) > Backup Plan.

    In simple mode, hover over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Security and Specifications (DBS) > Disaster Recovery for Data (DBS) > Backup Plan.
  3. In the dialog box that appears, click Activate OSS Now.

  4. In the next dialog box, click Activate Now

  5. On the OSS page, read and agree to the service agreement by selecting the check box, then click Activate Now.

Data Disaster Recovery is now activated.

AliyunServiceRoleForDBS

Role name: AliyunServiceRoleForDBS

Policy attached to the role: AliyunServiceRolePolicyForDBS

Permissions:

{
  "Version": "1",
  "Statement": [
    {
      "Action": [
        "rds:DescribeDBInstanceNetInfo",
        "rds:DescribeDBInstanceNetInfoForChannel",
        "rds:DescribeTasks",
        "rds:DescribeDBInstances",
        "rds:DescribeFilesForSQLServer",
        "rds:DescribeImportsForSQLServer",
        "rds:DescribeSlowLogRecords",
        "rds:DescribeBinlogFiles",
        "rds:DescribeSQLLogRecords",
        "rds:DescribeParameters",
        "rds:DescribeParameterTemplates",
        "rds:DescribeDBInstanceAttribute",
        "rds:DescribeDatabases",
        "rds:DescribeAccounts",
        "rds:DescribeSecurityIPList",
        "rds:DescribeSecurityIps",
        "rds:DescribeDBInstanceIPArray",
        "rds:DescribeDBInstanceIPArrayList",
        "rds:DescribeDBInstanceSSL",
        "rds:DescribeDBInstanceTDE",
        "rds:CreateDBInstance",
        "rds:CreateAccount",
        "rds:CreateDatabase",
        "rds:ModifySecurityIps",
        "rds:GrantAccountPrivilege",
        "rds:CreateMigrateTask",
        "rds:CreateOnlineDatabaseTask",
        "rds:DescribeMigrateTasks",
        "rds:DescribeOssDownloads",
        "rds:CreateBackup",
        "rds:DescribeBackups",
        "rds:DescribeBackupPolicy",
        "rds:ModifyBackupPolicy",
        "rds:DescribeBackupTasks",
        "rds:DescribeBinlogFiles"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "ecs:DescribeInstance",
        "ecs:DescribeInstances",
        "ecs:DescribeVpcs",
        "ecs:DescribeSecurityGroups",
        "ecs:DescribeSecurityGroupAttribute",
        "ecs:AuthorizeSecurityGroup",
        "ecs:JoinSecurityGroup",
        "ecs:RevokerSecurityGroup"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "kms:ListKeys"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "cms:PutEventRule",
        "cms:PutEventTargets",
        "cms:ListEventRules",
        "cms:ListEventTargetsByRule",
        "cms:DeleteEventRule",
        "cms:DeleteEventTargets"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "polardb:DescribeDBClusterIPArrayList",
        "polardb:DescribeDBClusterNetInfo",
        "polardb:DescribeDBClusters",
        "polardb:ModifySecurityIps",
        "polardb:DescribeDBClusterEndpoints",
        "polardb:DescribeDBClusterAccessWhitelist",
        "polardb:ModifyDBClusterAccessWhitelist"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "dds:DescribeDBInstanceAttribute",
        "dds:DescribeReplicaSetRole",
        "dds:DescribeSecurityIps",
        "dds:DescribeDBInstances",
        "dds:ModifySecurityIps"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "kvstore:DescribeSecurityIps",
        "kvstore:DescribeInstances",
        "kvstore:DescribeAccounts",
        "kvstore:DescribeDBInstanceNetInfo",
        "kvstore:CreateAccount",
        "kvstore:ModifySecurityIps",
        "kvstore:DescribeInstanceAttribute",
        "kvstore:AllocateInstancePrivateConnection",
        "kvstore:DescribeLogicInstanceTopology"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "drds:DescribeDrdsDB",
        "drds:DescribeDrdsDBs",
        "drds:DescribeDrdsDbInstance",
        "drds:DescribeDrdsDbInstances",
        "drds:DescribeDrdsDBIpWhiteList",
        "drds:DescribeDrdsInstances",
        "drds:ModifyDrdsIpWhiteList",
        "drds:CreateDrdsDB",
        "drds:DescribeTable",
        "drds:DescribeTables",
        "drds:ModifyRdsReadWeight",
        "drds:ChangeAccountPassword",
        "drds:CreateDrdsInstance",
        "drds:CreateInstanceAccount",
        "drds:CreateInstanceInternetAddress",
        "drds:DescribeInstanceAccounts"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "vpc:DescribeVpcs"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "bssapi:QueryResourcePackageInstances"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": "hdm:AddHDMInstance",
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": "ram:DeleteServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": "dbs.aliyuncs.com"
        }
      }
    }
  ]
}

Required permissions for database accounts

MySQL databases

Feature Required permissions
Backup Physical backup: LOCK_TABLES, REPLICATION_CLIENT, PROCESS, SUPER, CREATE, and RELOAD. For MySQL 8.0, the account must also have the BACKUP_ADMIN permission and SELECT on the performance_schema.log_status and keyring_component_status tables. Logical backup: SELECT, SHOW VIEW, REPLICATION SLAVE, and REPLICATION CLIENT on the destination and information_schema databases.
Restoration SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, and TRIGGER
To perform incremental backup, Data Disaster Recovery executes the show binary logs statement. MySQL 5.5.24 and earlier requires the SUPER permission; MySQL 5.5.25 and later requires only REPLICATION CLIENT.
For RDS databases, read-only permissions are sufficient for backup; read and write permissions are required for backup and restoration.

SQL Server databases

Feature Required permissions
Backup SELECT and VIEW DEFINITION
Restoration SELECT, INSERT, ALTER Database, REFERENCES, and VIEW DEFINITION

PostgreSQL databases

Feature Required permissions
Backup SELECT and SUPER
Restoration CREATE, INSERT, USAGE, REFERENCES, and TRIGGER

How does Data Disaster Recovery ensure consistency of restored data?

  • For full backups using logical backup, Data Disaster Recovery pulls data from the source database in parallel and writes it to OSS without locking tables, minimizing performance impact.

  • Data Disaster Recovery restores full backup data first, then incremental log backup data. Consistency is ensured through the idempotence of incremental log backup.

Incremental backup Consistency of restored data
Enabled Supported
Disabled Not supported

Manage backup set lifecycle rules

Lifecycle rules

The lifecycle of a backup set ranges from seven days to 3,650 days (10 years). Data Disaster Recovery automatically deletes expired backup sets from a backup schedule, but only when the schedule contains more than three full backup sets. If the count is three or fewer, expired backup sets are not deleted.

To trigger the cleanup policy, run a manual backup or wait for the next scheduled backup until the full backup set count exceeds three. See Manually initiate a backup task.
If you manually delete full backup sets and the count drops to three or fewer, the cleanup policy stops running. Incremental backup sets continue to accumulate and occupy storage. To stop incremental backup, disable it manually. See Enable or disable incremental log backup.
Lifecycle rule changes apply to both new and existing backup sets.

Modify lifecycle rules

See Modify the backup policy of a backup schedule or Modify the lifecycle of a backup schedule.

More operations

To view backup sizes or reduce backup frequency, see Delete backup sets or reduce the backup frequency.

FAQ

Why aren't backup sets deleted after the lifecycle expires?

The cleanup policy only runs when a backup schedule has more than three full backup sets. If the count is three or fewer, expired backup sets are kept regardless of lifecycle settings.

Why does an expired incremental backup still occupy storage?

You've likely manually deleted full backup sets, bringing the count to three or fewer. With the cleanup policy inactive, incremental backup sets accumulate indefinitely. See the Lifecycle rules section above.

What is backup data size?

Backup data size is the actual volume of data transmitted through the Data Disaster Recovery server.

Key concepts

View backup data volume

  1. Click Manage in the Actions column of the backup schedule.

  2. In the Billing Information section of the schedule details page, view the backup data volume.

image
Field Description
Instance type Backup schedule types include serverless, micro, small, medium, large, and xlarge. See Select a backup schedule type.
Billing method Pay-as-you-go or subscription. See Pricing.
Free quota of data volume The free backup data quota, unit price, and backup and restoration performance vary by schedule type. To increase the free quota, upgrade the backup schedule. See Upgrade a backup schedule and Select a backup schedule type.
Billed data volume of this month The amount of data that exceeds the free quota. Higher-tier schedule types offer better backup and restoration performance at a lower unit price.
Full data volume backed up this month Backup data volume for full backup tasks in the current month.
Incremental data volume backed up this month Backup data volume for incremental backup tasks in the current month.
Statistical period Backup data volume is calculated per calendar month.
Created at The time when the backup schedule was created.

Modify the backup source database

When to use this

  • The original backup source database has been migrated or decommissioned and you want to switch to a different database.

  • Testing is complete and you want to switch from a test database to a production database.

  • The database account or password is incorrect, or the account lacks sufficient permissions.

  • The tables in the backup source have changed and you want to update the backup objects.

Change the database account, password, or backup objects

Prerequisites

Procedure

  1. Find the backup schedule and click Manage in the Actions column. The Configure Task page appears.

  2. In the Basic Information section, click Edit Backup Source. For database-specific configuration details, see Configure a backup schedule and restore data.

    image

  3. Enter the new backup source information. After the connection test passes, click Next.

    image

  4. Configure the database objects to back up and click Save.

    • To add a database, select it in the Available section and click the image icon.

    • To remove a database, select it in the Selected section and click the image icon.

    image

  5. After the precheck passes, click Start Task. The new backup source takes effect.

    - If an incremental backup task is running, it stops when you click Start Task. A new incremental backup task starts automatically using the new credentials. - If no full backup task is running, a full backup starts immediately. To minimize impact on the source database, perform this operation during off-peak hours. - If a full backup task is already running, it completes based on the previous configuration. The updated configuration takes effect on the next scheduled or manually started full backup.

Change only backup objects

  1. Find the backup schedule and click Manage in the Actions column. The Configure Task page appears.

  2. In the Basic Information section, click Edit Backup Objects.

    image

  3. Update the backup objects and click Save.

    • To add a database, select it in the Available section and click the image icon.

    • To remove a database, select it in the Selected section and click the image icon.

    image

  4. In the Start Full Data Backup dialog box, click OK or Close

    • OK: A full backup starts in about one minute for the updated backup objects. Perform this during off-peak hours to minimize impact on the source database.

    • Close: The updated configuration is saved, but no immediate backup runs. The next scheduled full backup uses the new configuration.

Cross-region backup schedules for RDS instances

When you enable the cross-region backup feature for an ApsaraDB RDS for MySQL, ApsaraDB RDS for SQL Server, or ApsaraDB RDS for PostgreSQL instance in the ApsaraDB RDS console, Data Disaster Recovery transfers and backs up the instance data across regions using Express Connect. A backup schedule is automatically created in the Data Disaster Recovery console. You can view source database details on the backup schedule's details page.

For more information about cross-region backup and billing, see:

FAQ

How do I stop a backup schedule generated by cross-region backup?

Disable the cross-region backup feature in the ApsaraDB RDS console. Data Disaster Recovery automatically stops the corresponding backup schedule.

Why am I still charged after disabling cross-region backup?

Disabling cross-region backup stops new backups and cross-region transfers. However, existing backup files are retained for at least seven days, and you're charged for their storage during this period. Set the retention period to seven days to minimize costs—files are automatically deleted after that. See Use the cross-region backup feature.

Can I switch the billing method of this backup schedule to subscription?

No. Backup schedules generated by cross-region backup use pay-as-you-go billing by default and cannot be switched to subscription.

Why does the backup schedule still appear in the Data Disaster Recovery console after I disable cross-region backup?

The backup schedule is kept in the console for reference, but no fees are charged after you disable cross-region backup.

Impact of backup on database performance

When Data Disaster Recovery runs a backup task, it affects database performance. Run backup tasks during off-peak hours.

Physical backup
Item Logical backup
Full backup Data Disaster Recovery splits the data across all tables and runs SQL statements to read data in multiple parallel threads. A backup gateway installed on the database server performs the backup.
Incremental backup Data Disaster Recovery incrementally backs up logs from the database's memory in real time, preventing sudden I/O drops that occur when large volumes of data are backed up at once.
Impact on databases Data is read from the database instance, affecting performance. No tables are locked. Data is read from database disks, affecting I/O performance. No tables are locked.

Configurebinlog_formatfor MySQL backup

Data Disaster Recovery requires the binlog_format variable set to ROW to enable incremental backup and reliable data restoration.

When this applies

During the precheck step of configuring a backup schedule, the precheck fails with a message indicating that binlog_format is not set to ROW. See Back up an on-premise database or cloud database from a third-party provider.

Usage notes

  • Set binlog_format to ROW. In ROW mode, the before and after images of rows affected by DML operations are logged, which enables accurate data restoration.

  • Avoid STATEMENT or MIXED mode—ROW mode is more stable and reliable.

  • Changing binlog_format to ROW only affects binary logs and doesn't impact query performance. To make the change take effect for all connections, kill existing database connections.

Procedure

  1. Run the following command using a privileged account on the source database:

    SET GLOBAL binlog_format = 'ROW';

    To verify the current value:

    SHOW GLOBAL VARIABLES LIKE 'binlog_format';
  2. Kill all existing database connections. Without this step, connected processes may continue writing in non-ROW mode, causing inconsistent incremental data.

Back up a read-only ApsaraDB RDS for MySQL instance

Data Disaster Recovery supports backing up read-only ApsaraDB RDS for MySQL instances over either their public endpoint or internal endpoint.

Prerequisites

  • A backup schedule is purchased. Set the Data Source Type to MySQL and Backup Method to Logical Backup when purchasing. See Create a backup schedule.

  • A read-only ApsaraDB RDS for MySQL instance exists. See Create a read-only ApsaraDB RDS for MySQL instance.

  • Depending on the connection method:

    • Public endpoint (Method 1): The public endpoint of the read-only instance is obtained. See View and manage instance endpoints and ports. The Data Disaster Recovery server CIDR blocks are added to the instance whitelist. When configuring the backup schedule, set Database Location to User-Created Database with Public IP Address \<IP Address:Port Number\> and click Set Whitelist to get the CIDR blocks. image

    • Internal endpoint (Method 2): The real-time internal IP address is obtained by running ping on your local device against the internal endpoint. The Data Disaster Recovery server CIDR blocks are added to the instance whitelist. When configuring the backup schedule, set Database Location to RDS Instance and click Set Whitelist. 获取内网IP > Important: The internal IP address obtained this way is a real-time IP. If you clone the instance, migrate it to another zone, or change its VPC or vSwitch, the internal IP may change, causing backup failures. image

Usage notes

  • Public endpoint backups: Binary logs may be delayed. On the Backup and Restoration page of the read-only instance, set the Retention Period parameter to a larger value. The default is 18 hours.

    image

  • Internal endpoint backups: If you clone the read-only instance, migrate it to another zone, or change its VPC or vSwitch, the real-time internal IP may change. When this happens, backups fail. Get a new real-time IP and reconfigure the backup source. See the Prerequisites section and Modify the backup source database.

Method 1: Back up using the public endpoint

  1. On the Backup Schedules page, find the backup schedule and click Configure Backup Schedule in the Actions column.

    image.png

  2. In the Configure Backup Source and Destination step, configure the backup source and destination, then click Next.

    - Set Database Location to User-Created Database with Public IP Address \<IP Address:Port Number\>. - Set Address to the public endpoint of the read-only instance. See View and manage instance endpoints and ports. - For other parameters, see Manage a backup schedule.
  3. In the Edit Backup Objects step, add the databases or tables to back up to the Selected section, then click Next.

    - With logical backup, you can specify databases and tables for full backups—including single tables, single databases, multiple databases, or an entire instance. Incremental backup always covers all incremental data for supported database types. Click Select All to back up the entire database. For supported types and granularity, see Supported database types and features. - Databases created after the backup schedule is configured are not backed up by default. Add them on the Edit Backup Objects page. See Modify backup objects. - With physical backup, you must back up the entire database instance.
  4. In the Configure Backup Time step, configure the parameters below and click Next.

    Parameter Description
    Full-scale backup frequency Periodic Backup or Single Backup. For scenarios where incremental data needs to be restored, select Periodic Backup and run a full backup at least once a week. Fewer full backups mean more binary logs to replay during restoration, which increases the risk of errors and extends recovery time objective (RTO).
    Full data backup recurrence Required when Full-scale Backup Frequency is Periodic Backup. Select the days of the week for backups. Select at least one day.
    Start at Required when Full-scale Backup Frequency is Periodic Backup. Set a time during off-peak hours, such as 01:00. If a previous full backup isn't complete at the start time, Data Disaster Recovery skips the next run.
    Incremental backup Enable to back up binary logs continuously. Make sure binary logging is enabled on the source database. Displayed only when Full-scale Backup Frequency is Periodic Backup. ApsaraDB RDS for MySQL has binary logging enabled by default; self-managed databases require manual configuration.
    Maximum concurrent threads for full data backup Maximum number of parallel threads for full backups. Reduce this value to minimize database impact.
    Backup network speed limit Network bandwidth limit in MB/s. The default value 0 means no limit. Displayed only for MySQL databases.
  5. In the Edit Lifecycle step, configure the lifecycle for full backup data. If incremental backup is enabled, also configure the lifecycle for incremental backup data.

  6. Click Precheck in the lower-right corner.

  7. When Precheck Passed appears, click Start Task.

    - When the backup schedule state changes to Running, the schedule is active. - If an error occurs, troubleshoot it promptly. See Fix errors for an abnormal backup schedule. If the issue persists, contact technical support in the DingTalk group (ID: 35585947).

Method 2: Back up using the internal endpoint

  1. On the Backup Schedules page, find the backup schedule and click Configure Backup Schedule in the Actions column.

    image.png

  2. In the Configure Backup Source and Destination step, configure the backup source and destination, then click Next.

    - Set Database Location to Express Connect DB/VPN Gateway/Intelligent Gateway. - Set Peer VPC to the VPC where the read-only instance is deployed. - Set Address to the real-time internal IP address. See the Prerequisites section. - Set Port Number to the port of the read-only instance. - For other parameters, see Manage a backup schedule.

    image

  3. In the Edit Backup Objects step, add the databases or tables to back up to the Selected section, then click Next.

    - With logical backup, you can specify databases and tables for full backups—including single tables, single databases, multiple databases, or an entire instance. Incremental backup always covers all incremental data for supported database types. Click Select All to back up the entire database. For supported types and granularity, see Supported database types and features. - Databases created after the backup schedule is configured are not backed up by default. Add them on the Edit Backup Objects page. See Modify backup objects. - With physical backup, you must back up the entire database instance.
  4. In the Configure Backup Time step, configure the parameters below and click Next.

    Parameter Description
    Full-scale backup frequency Periodic Backup or Single Backup. For scenarios where incremental data needs to be restored, select Periodic Backup and run a full backup at least once a week.
    Full data backup recurrence Required when Full-scale Backup Frequency is Periodic Backup. Select the days of the week for backups. Select at least one day.
    Start at Required when Full-scale Backup Frequency is Periodic Backup. Set a time during off-peak hours. If a previous full backup isn't complete at the start time, Data Disaster Recovery skips the next run.
    Incremental backup Enable to back up binary logs continuously. Make sure binary logging is enabled on the source database. Displayed only when Full-scale Backup Frequency is Periodic Backup.
    Maximum concurrent threads for full data backup Maximum number of parallel threads for full backups. Reduce this value to minimize database impact.
    Backup network speed limit Network bandwidth limit in MB/s. The default value 0 means no limit. Displayed only for MySQL databases.
  5. In the Edit Lifecycle step, configure the lifecycle for full backup data. If incremental backup is enabled, also configure the lifecycle for incremental backup data.

  6. Click Precheck in the lower-right corner.

  7. When Precheck Passed appears, click Start Task.

    - When the backup schedule state changes to Running, the schedule is active. - If an error occurs, troubleshoot it promptly. See Fix errors for an abnormal backup schedule. If the issue persists, contact technical support in the DingTalk group (ID: 35585947).

Get the internal and public endpoints

  1. Go to the Instances page. Select the region where the RDS instance resides and click the instance ID.

  2. On the Basic Information page, click View Details next to the Network Type parameter to see the internal and public endpoints.

    If no public endpoint exists, click Apply for Public Endpoint > OK to request one.

    image

    image

FAQ

Why does the source instance fail to connect when using the internal endpoint?

The internal IP obtained by running ping is a real-time IP. Cloning the read-only instance, migrating it to another zone, or changing its VPC or vSwitch can cause this IP to change, breaking the backup connection.

To fix this, run ping again against the internal endpoint to get the updated IP, then reconfigure the backup source. See Modify the backup source database.

image

Can Data Disaster Recovery back up both full data and incremental data for a read-only instance?

Yes.

Differences between Data Disaster Recovery and RDS backup

Data Disaster Recovery RDS backup
Backup types Dump backup and logical backup Physical backup
Primary use cases Cross-region backup and flexible backup requirements Local backup and fast restoration

Value of dump backup

Cross-region backup

  • Data is transferred over a VPC for security and stability.

  • Physical backup data and logs of RDS instances are dumped without initiating additional backups.

  • Backup sets can be restored to RDS with one click.

  • Backup sets can be retained for up to five years, even after the RDS instance is released.

  • Storage scales automatically.

Flexible backup

  • Data Disaster Recovery backs up core tables in real time with a recovery point objective (RPO) accurate to seconds. Data can be restored to any point in time.

  • Individual tables can be restored from a full backup set. Restoration time depends only on the actual data volume—typically within minutes.

  • The schema mapping feature lets you restore data to the original database instance without purchasing an additional instance. You can rename databases and tables, and if object names conflict, Data Disaster Recovery automatically renames duplicates while keeping the original data intact.

  • Data Disaster Recovery is integrated with DMS. Access it by choosing Security and Specifications (DBS) > Disaster Recovery for Data (DBS) in the DMS console.

View backup files stored in OSS

When you back up data to an OSS bucket you create, Data Disaster Recovery automatically creates backup folders in the bucket. Backup files follow this naming format: <Backup schedule ID>/<Backup type>/<Full or incremental backup task ID>/<Specific data>.

  1. On the Backup Schedules page, find the backup schedule and click Manage in the Actions column.

  2. On the Configure Task page, find Destination OSS Bucket and click the bucket name.

    image

You're directed to the bucket details page in the OSS console. The bucket contains full and continuous folders for full and incremental backup files respectively.

image

For more information about OSS, see Get started with OSS.

Why is the backup SQL statement time different in the Data Disaster Recovery console versus the ApsaraDB RDS console?

Data Disaster Recovery uses UTC+0 when executing backup SQL statements during logical backup. ApsaraDB RDS records the same SQL statements in its SQL audit logs using UTC+8. This causes an 8-hour difference between the two consoles. The time shown in the Data Disaster Recovery console reflects the actual execution time.