All Products
Search
Document Center

ApsaraDB RDS:Full backup

Last Updated:Mar 28, 2026

ApsaraDB RDS for MySQL automatically runs full backups on a configurable schedule, and lets you trigger on-demand backups before high-risk operations. Together with log backups, full backups form the foundation for point-in-time recovery (PITR).

Use cases

  • Daily data protection: Schedule automatic full backups to protect against hardware failures and accidental data loss. Combined with log backups, they enable PITR to minimize data loss in failure scenarios.

  • Pre-operation snapshots: Before schema changes (DDL), application upgrades, or data migrations, trigger a manual backup to create a reliable recovery point. If the operation causes issues, roll back to the pre-operation state quickly.

Prerequisites

Before you begin, ensure that you have:

Billing

Backup storage within the free quota is not charged. Usage beyond the free quota is billed based on actual consumption. For free quota details and pricing, see Backup storage costs.

Limits and notes

  • Always on: Full backup is enabled by default and cannot be disabled. Backups run at least twice a week and are retained for at least 7 days.

  • Policy changes trigger an immediate backup: Saving a modified backup policy immediately triggers a full backup.

    Important

    Plan policy changes accordingly — a full backup starts as soon as you save the new policy.

  • DDL during backup: Avoid DDL operations during a backup. DDL can cause table locks and result in backup failure.

  • Backup window: Schedule backups during off-peak hours to reduce the impact on running services.

  • Table count limits:

    • More than 50,000 tables: the restoration for individual databases and tables feature is unavailable. The database recovery feature is not affected.

    • More than 600,000 tables: the backup fails.

  • Engine version restrictions: Backups cannot be initiated for locked instances running the following minor engine versions:

    • RDS for MySQL 5.1 and 5.5: all minor versions

    • RDS for MySQL 5.6, 5.7, and 8.0: minor versions earlier than 20190815

    To upgrade the major version or minor engine version, see Upgrade database version or Upgrade minor engine version. For locked instance troubleshooting, see What to do when an instance's status is "Locking".
  • Read-only instances: Only a local log retention policy can be set. Automatic backup policies are not supported for read-only instances.

Configure automatic backups

Step 1: Go to the backup policy page

  1. Log on to the ApsaraDB RDS console. In the top navigation bar, select the region where your instance resides, then click the instance ID.

  2. In the left navigation pane, click Backup and Recovery.

  3. Click the Backup Policy tab.

The console shows either the standard or advanced backup policy page, depending on whether you have upgraded.

How to tell which page you have

Page typeIndicators
Standard backup policyContains a Basic Backup section; clicking Edit opens a form directly
Advanced backup policyHas MySQL and Level-1 Backup tabs at the top; click a circular icon with a number to open parameter settings; supports advanced features such as sparse backup
imageimage
To upgrade from the standard to the advanced backup policy page, find the Upgrade to Advanced Version link on the standard page. See Upgrade the backup policy page to the advanced version for details. After upgrading, reconfigure your parameters as needed.

Step 2: Configure backup parameters

The following parameters apply to both standard and advanced backup policies.

Data backup settings

Full backup is enabled by default and cannot be disabled.

ParameterDescription
Backup cycleAt least twice a week. For cloud disk instances with high-frequency snapshot backup enabled, the frequency can be as high as once every 15 minutes.
Backup retention periodDefault: 7 days.<br>- Cloud disk instances: 7–730 days. For RDS for MySQL 5.7 Basic Edition, fixed at 7 days.<br>- Instances with Premium Local SSDs: 7 days or more. Backups up to 730 days are standard backups. Backups beyond 730 days are archive backups with lower storage costs.<br><br>
Note

When setting a retention period over 730 days or selecting Long-term Retention Before Instance Release, also set the number of archive backups to retain (for example, retain the first two archive backups of each month).

Backup start timeSelect an off-peak window to minimize the impact on your services.
Retain backup files after instance releaseChoose whether to retain backups after the instance is released. Select Retain The Last Backup or Retain All Backups to keep backups accessible on the Deleted Instance Backups page. For more information, see Long-term retention backup.

Log backup settings

Log backups (incremental backups) enable point-in-time recovery (PITR).

ParameterDescription
Log backupEnables point-in-time restore. On by default.
Point-in-time recoveryEnables PITR for your data.
Log backup retention period (days)Valid range: 7–730 days. Default: 7 days. Must be less than or equal to the full backup retention period. For RDS for MySQL 5.7 Basic Edition, fixed at 7 days.
Important

To guarantee PITR coverage, the system retains some backup sets beyond the configured log backup retention period. For example, with a 7-day retention period, the system actually retains 7–9 days of data — specifically, the latest full backup older than seven days, plus all continuous log backups from that full backup up to the seven-day mark. You are billed for only one full backup and a maximum of one additional week of log backups.

Advanced features (optional)

FeatureApplicable instancesDescription
Backup within secondsCloud disk instances (High-availability Edition, Cluster Edition)

RDS High-availability Edition, Cluster Edition, or RDS Enterprise Edition

Snapshot backups complete in seconds.
Increase snapshot frequencyCloud disk instances (High-availability Edition, Cluster Edition)Enables high-frequency snapshot backup, reducing the snapshot interval to as short as every 15 minutes. Requires Backup within seconds to also be enabled — if not already enabled, the system enables it automatically.
Restoration for individual databases and tablesAll instancesBackup files support single-database or single-table restoration without restoring the full instance.
Fast restoration for individual databases and tablesInstances with Premium Local SSDs (selected regions)Enables fast restoration, increasing restoration speed by 50%–95% compared to standard speed. Also requires setting CDM Billing Method and CDM Retention Period.
Backup encryptionInstances with Premium Local SSDs (advanced backup policy)Encrypts backup files to improve data security.

Step 3: Save and verify

  1. Click OK or Save.

  2. The system immediately triggers a full backup based on the new policy.

  3. On the Backup and Recovery page, click the Data Backup tab to view the newly generated backup set. The tab lists all completed backup sets with timestamps. After the first backup completes, subsequent backups run automatically according to the policy.

Perform a manual backup

  1. Log on to the ApsaraDB RDS console. In the top navigation bar, select the region where your instance resides, then click the instance ID.

  2. In the upper-right corner of the page, click Backup Instance.

  3. In the Backup Instance dialog box, choose whether to back up all databases or specific databases and tables, then click OK.

The available backup methods depend on your instance's storage type:

Storage typeBack up all databasesBack up specific databases and tables
Instances with Premium Local SSDsPhysical Backup (faster backup and recovery) or Logical Backup > Instance BackupLogical Backup > Single-Database Backup
Cloud disk instancesSnapshot BackupNot supported
For details on the differences between backup modes, see Logical backups, physical backups, and snapshots.

View backup progress

After starting a backup, a backup task is generated. To check progress:

  1. Go to the Task Hub page.

  2. Set Task Type to Manual Instance Backup and filter by Pending or Running status.

备份进程

To view completed backups, go to Backup and Recovery > Data Backup. The tab lists all completed backup sets with timestamps, retention period end dates, and restore actions. From this page, download a backup file or use it as a restore point.

A backup set appears in the list only after the backup is complete. The retention period for manual backup sets follows the configured Backup Policy.

FAQ

Do backups affect instance performance?

It depends on the edition:

  • High-availability Edition, Cluster Edition, and Enterprise Edition: Backups run on the secondary instance, so they do not consume CPU resources or affect the performance of the primary instance. In rare cases when the secondary instance is unavailable, the backup runs on the primary instance instead.

  • Basic Edition: The instance runs as a standalone node with no secondary. All backup operations run on that instance, which can reduce its performance during a backup.

Can I disable data backups or log backups?

Data backups cannot be disabled. The minimum configuration is twice per week with a 7-day retention period. Log backups can be disabled — turn off the log backup switch on the Backup Strategy page. To reduce backup volume, see Delete or reduce backups.

Are automatic backups still performed when a pay-as-you-go instance has an overdue payment?

Within the first 7 days of an overdue payment, automatic backups continue. After 7 days, Alibaba Cloud suspends the instance and stops billing. Automatic backups also stop. For more information, see Overdue payments.

Why do backup jobs sometimes fail?

DDL or long-running update statements executed during a backup can cause table locks, which results in backup failure. Avoid DDL operations during a backup window.

Why is my snapshot backup size much larger than my actual data volume?

Cloud disk instances use snapshot backups, and a single snapshot can be significantly larger than the actual data size. All non-empty blocks are included in the snapshot — when data is written in a scattered pattern, more non-empty blocks are created, increasing the snapshot size. The free quota for cloud disk instances is 200% of the instance's storage capacity (50% for instances with Premium Local SSDs).

Because of this, the total backup size shown on the Backup and Recovery page may not match the backup usage figure displayed in the console.

Do backup files use my instance's disk space?

No. Data backups and log backups are stored in Alibaba Cloud backup storage and do not consume your instance's storage space. Backup storage cannot be accessed directly — to download a backup, see Download a backup. Backup storage comes with a free quota; usage beyond the quota is billed. For pricing, see Backup storage costs.

What's next

API reference

CategoryAPIDescription
RDS default backupModifyBackupPolicyModifies the backup settings of an RDS instance.
DescribeBackupPolicyQueries the backup settings of an instance.
DescribeBackupsLists backup sets.
DescribeBackupTasksQueries the backup jobs for an instance.
Data Disaster Recovery backupCreateBackupPlanCreates a backup plan.
ConfigureBackupPlanConfigures a backup plan.

Other engines

References