Backup

更新时间:
复制 MD 格式

This topic describes the features, usage calculation, billing method, performance impact, and data protection policies for Alibaba Cloud RDS for MySQL backups.

Backup features

Category

Feature

Description

Use case

Basic backup capabilities

automatic backup

A core automated protection mechanism. You can configure the backup cycle, time window, and retention period.

For routine operations, the system automatically performs a full backup based on your policy. This backup, combined with log backups, enables point-in-time recovery (PITR).

manual backup

Lets you create backups on demand.

Create a traceable recovery point before major changes such as application upgrades or data migrations.

Advanced backup capabilities

database/table-level backup

Restore one or more specific databases or tables without restoring the entire instance.

Ideal for fine-grained recovery scenarios, such as recovering from accidental table deletions or unintended data updates, to minimize business impact.

high-frequency backup (physical/snapshot)

Enables you to quickly restore data to a specific point in time, significantly shortening the potential data loss window.

Ideal for business scenarios with strict RPO (Recovery Point Objective) targets.

Disaster recovery and cost optimization

cross-region backup

Automatically backs up data to another region.

Enable region-level disaster recovery to maximize availability.

infrequent-access backup

Provides flexible backup policies to minimize the number of retained backup sets.

Reduces backup storage costs while ensuring data availability.

Set backup retention policy after instance release

Lets you retain backup data for a specified period after an instance is released (deleted).

Prevents permanent data loss from accidental instance deletion, providing a final opportunity for recovery.

Combining these features lets you build a comprehensive and highly configurable data protection system that meets your needs for routine operations, advanced disaster recovery, and performance and cost management.

Note

Additionally, you can use the logical backup feature to implement automated backup for RDS for MySQL or self-managed MySQL. This feature supports cross-account backup, single database or table backup, remote backup, and storing backups in OSS.

Backup methods

Common data backup methods include logical backup, physical backup, and snapshot backup. The following table outlines the main differences among them.

Dimension

Logical backup

Physical backup

Snapshot backup

Backup granularity

Database object level (for example, tables, indexes, and stored procedures)

Database file level (such as InnoDB data files)

Cloud disk block level (the entire storage volume of an instance)

Typical tools

mysqldump

XtraBackup

ESSD cloud disk snapshot service

Recovery precision

Supports restoring a single database or table, but point-in-time recovery is not supported without binlogs.

Supports point-in-time recovery (PITR) with second-level precision, using a full backup and log backups.

Supports point-in-time recovery with log backups.

Use cases

Migrating data across different versions, restoring a single table, and exporting data to a self-managed database.

Fast full restore, disaster recovery, and cross-region backup.

For scenarios requiring ultra-fast recovery (lowest RTO) and high business continuity.

Related operations

Restore data from a logical backup file of an ApsaraDB RDS for MySQL instance to a self-managed database

Restore data from a physical backup file of an ApsaraDB RDS for MySQL instance to a self-managed database

Restore data from a snapshot backup file of an ApsaraDB RDS for MySQL instance to a self-managed database

Backup usage

Backup components

RDS backups consist of data backups and log backups.

  • Data backup: The system backs up your data and generates a backup set. This feature is enabled by default and cannot be disabled. Data backups are retained for at least 7 days and are performed at least twice a week. If you have minimal data backup needs, you can reduce your backup usage by decreasing the backup frequency and the retention period for backup sets.

  • Log backup: Also known as an incremental backup. This feature is enabled by default but can be disabled. Log backups are retained for at least 7 days. Combining data backups with log backups enables point-in-time recovery (PITR), allowing you to restore data to any point in time within the retention period, starting from the time of the first full backup. If you have minimal log backup needs, you can reduce your backup usage by decreasing the backup set retention period or disabling log backups.

View backup usage

backup usage = data backup size + log backup size

Note
  • Go to the instance's Basic Information page and find the Backup Usage parameter in the Instance Resources section.

  • After you upgrade the minor version of an RDS MySQL or RDS MySQL Serverless Basic Edition instance, the Backup Usage on the Basic Information page may display as 0. The value automatically returns to normal after the next scheduled backup is complete.

For example, the backup usage is 33.2 GB (data backup) + 20.19 MB (log backup). In this context, archive backup refers to data backups that have been retained for more than 2 years (730 days), and Data refers to non-archived data backups.

Backup usage

Relationship with storage space usage

Item

Description

Purpose

Data backup

Creates a backup set of your data. This set is stored in a backup space provided by Alibaba Cloud and does not consume the instance's storage space.

Primarily used for data recovery and serves as the foundation for point-in-time recovery (PITR).

Log backup

When enabled, local logs are uploaded in real time to a backup space provided by Alibaba Cloud and do not consume the instance's storage space.

Enables point-in-time recovery (PITR).

Local log

The raw logs of the instance, stored in the instance's storage space.

For example, you can use them to build a self-managed primary/secondary architecture.

Note
  • Clearing local logs reduces the storage space they consume but does not affect the size of the log backup.

  • On the Monitoring and Alerts page of the instance, you can view the storage space occupied by local logs. For more details, see View Monitoring Information. The MySQL Storage Usage chart displays a detailed breakdown of storage consumption by different log types.

Relationship with data size

A single backup file can be larger or smaller than its source data.

A cloud disk instance uses snapshot backup. A single snapshot backup file may be larger than the source data. The free backup quota for a cloud disk instance is 200% of the instance's storage capacity, while the free backup quota for a high-performance local disk instance is 50% of its storage capacity.

Note

The size of a single snapshot backup file is the total size of all its non-empty blocks. If data is written in a scattered manner (for example, 3 MB of data might occupy 2, 3, or even 4 blocks), more non-empty blocks are created, which increases the size of the snapshot backup file.

Relationship with instance architecture

Backup size is independent of the instance architecture. For example, if a high availability instance and a Basic Edition instance have the same data, their backup sizes will be the same.

Backup pricing

Backup billable items

Billable item

Billable item code

Billed product

Related documentation

RDS basic backup

BackupCharged

ApsaraDB for RDS

Cross-region backup storage for instances with high-performance local disks

DdrOssStorageSize

Cross-region backup

Cross-region backup storage for instances with cloud disks

BackupStorageSize

DBS

Cross-region backup network traffic

NetworkOutDuplicationSize

Outbound traffic for backup downloads

NetworkOutSize

Download backup

Backup conversion for instances with cloud disks

BackupAnalyticSize

Backup set retention for deleted instances with high-performance local disks

StandardStorageSize

Set backup retention policy after instance release

Backup set retention for deleted instances with cloud disks

BackupStorageSize

Storage for database/table restore on instances with high-performance local disks

CapacitySandboxStorageSize

Restore databases/tables

Free backup quota

The free backup quota depends on whether the storage compression feature is enabled.

Storage type

Storage compression status

Free quota

Description

high-performance cloud disk

Disabled

200% of the storage capacity

View the Backup Usage (the actual logical data size) in the Usage Statistics section on the instance's Basic Information page.

Enabled

400% of the storage capacity

high-performance local disk

Disabled

50% of the storage capacity

Enabled

100% of the storage capacity

Important

The free backup quota applies only to regular backups, which are retained for up to 730 days. The quota does not cover archive backups, which are retained for more than 730 days.

Pricing

If your backup usage does not exceed the free quota, no fees are incurred for backups. Usage that exceeds the free quota is charged on a pay-as-you-go basis. The formula is: Hourly backup fee = (Backup usage - Free backup quota) × Backup unit price.

Plan deduction details

  • A Storage Plan can offset the costs of backup storage that exceeds the free quota for subscription or pay-as-you-go ApsaraDB for RDS instances, excluding those with high-performance cloud disks and SSD cloud disks.

  • A General-purpose Savings Plan can offset the backup storage costs for subscription, pay-as-you-go, and Serverless ApsaraDB for RDS instances.

Backup unit price

For the unit prices of regular and archive backup storage, go to the ApsaraDB for RDS Pricing page. On this page, click Pricing Details > Backup and Recovery.

Pricing example

Suppose you have an ApsaraDB for RDS for MySQL 8.0 instance that uses a cloud disk in the China (Hangzhou) region. The instance has a storage capacity of 20 GB. The data backup size is 40 GB, and the log backup size is 20 GB. The backup unit price is 0.00025 CNY/GB/hour. The backup fees are calculated as follows:

  • Free backup quota: 20 GB × 200% = 40 GB

  • Total backup usage: 40 GB + 20 GB = 60 GB. Because this usage exceeds the 40 GB free quota, the excess 20 GB is charged. Hourly backup fee: (60 GB - 40 GB) × 0.00025 = 0.005 CNY/hour

Usage notes

  • Backup fees are based on your total backup usage, not the storage capacity of your ApsaraDB for RDS instance, because backups are stored separately.

  • Therefore, when you analyze backup fees, check the backup usage instead of the storage capacity usage.

  • Control-plane operations that involve cloud disk replacement (such as rebuilding a secondary instance) have the following impacts on cloud disk instances:

    • The same-region backup storage for the cloud disk instance increases, resulting in higher same-region backup storage fees (Billable Item Code: BackupCharged).

    • The cross-region backup network traffic for the cloud disk instance increases, resulting in higher cross-region backup network traffic fees (Billable Item Code: NetworkOutDuplicationSize).

    • The cross-region backup storage for the cloud disk instance increases, resulting in higher cross-region backup storage fees (Billable Item Code: BackupStorageSize).

    Note

    For example, if a DDL operation causes a long lag on the secondary instance, the system may automatically trigger a rebuild of the secondary instance, which increases costs.

How to reduce backup fees

  • Reduce backup usage

    Delete or reduce backups. For more information, see Delete or reduce backups.

  • Increase the free quota

    Scale up storage capacity. For more information, see modify configurations.

    The free quota is tied to the storage capacity. For example, for an instance with a high-performance local disk (which has a 50% free quota), increasing the storage capacity from 150 GB to 300 GB increases the free quota from 75 GB to 150 GB.

  • Purchase an RDS Savings Plan or Storage Plan

    If you need to retain backups for a long time and do not plan to scale up your storage capacity, purchase an RDS Savings Plan or Storage Plan to offset backup fees. A Storage Plan takes precedence over an RDS Savings Plan.

View backup bills

  1. On the Billing Details page, select Billable Item and Details. Enter the instance name, instance ID, or bill ID, and then click Search.

  2. Find the line items for the Instance Backup billable item.

Backup storage location

Data backups and log backups are stored in Alibaba Cloud backup storage and do not consume your instance's storage space.

We store backups in the same region as your RDS instance, but not always in the same availability zone. To create backups in a different region, use cross-region backup.

Note
  • Backup storage is not publicly accessible. To download a backup, see download backup.

  • You are charged for any backup storage usage that exceeds the free quota. For more information, see backup fee.

Impact of backup

Instance series

Impact of backup

High Availability Series, Cluster Series, or Three-Node Enterprise Series

High Availability Series or Cluster Series

Backups run on the standby instance, which does not affect the primary instance's CPU usage or performance.

Note

In rare cases when the standby instance is unavailable, the backup runs on the primary instance.

Basic Series

Because this series uses a single-node architecture, backups affect the instance's performance.

Backup data protection

  • Tamper-proofing:

    • RDS MySQL stores full physical backups and log backups in OSS, and full snapshot backups in the ESSD cloud disk snapshot service. Both storage methods provide WORM (Write-Once-Read-Many) immutability.

  • Protection against malicious or accidental deletion:

    • Manual deletion: You can delete manual backups, but not automatic backups. (For more information, see Delete or reduce backups.)

    • Automatic expiration: Automatic backups are deleted after their retention period expires. However, you cannot disable this feature, which has a minimum 7-day retention period and runs at least twice a week. (For more information, see Automatic backup.) Therefore, the full and log data from your automatic backups can never be completely deleted.

FAQ

  • Q: My RDS instance's automatic backups are exceeding the free tier, and I'm being charged for them. How can I disable the backup feature?

    A: The default RDS backup feature is enabled automatically and cannot be disabled. However, you can modify the automatic backup policy to delete existing backups or reduce the creation of new backups. For more information, see Delete or reduce backups.

  • Q: My backup usage is within the free tier. Why am I still being charged?

    A: You may have incurred these charges when your backup usage previously exceeded the free tier.

  • Q: Can I use a storage package to offset charges for backup usage that exceeds the free tier?

    A: You can use a storage package to offset charges for backup storage that exceeds the free tier for subscription or pay-as-you-go RDS instances. This does not apply to instances that use ESSD or SSD cloud disks.

  • Q: Why is my backup size larger than my data size?

    A: A cloud disk instance uses snapshot backups, which means the backup size can be much larger than the actual data size. The system calculates the size of a snapshot backup based on all non-empty blocks. Writing data to the disk in a fragmented way creates many non-empty blocks, which increases the size of the snapshot backup.

  • Q: I reduced the backup retention period from x days to y days. Why hasn't the backup size changed?

    A: If you had no backups older than y days to begin with, no backup data was deleted. Therefore, the total backup size will not decrease.

  • Q: I've released my RDS for MySQL instance. Why am I still incurring backup charges?

    A: Even after you release an RDS for MySQL instance, its backups remain on the Backups page in the RDS console if you configured a backup retention policy after instance release. According to the policy, backup storage is free for the first 7 days after you release the instance. After 7 days, billing for this storage begins.

    Therefore, you are likely incurring charges because the retention period for your backups has exceeded the 7-day free period. Billing is based on the actual storage amount and the region. For detailed pricing, see pricing details. If you no longer need the backups, go to the Backup for Deleted Instances tab and change the retention policy for the target instance to None. This will prevent future backup storage charges.