All Products
Search
Document Center

ApsaraDB RDS:Backup size

Last Updated:Nov 21, 2025

This topic describes how to view and manage the backup size of an ApsaraDB RDS for MySQL instance. You can delete backups or reduce their size as needed. For more information, see Backup billing.

View backup size

Total backup size = Data backup size + Log backup size

Note
  • You can view the value of the Backup Usage parameter in the Instance Resource section on the Basic Information page of the instance.

  • After you perform a minor version update on an ApsaraDB RDS for MySQL instance or a Serverless ApsaraDB RDS for MySQL instance of the Basic Edition, the Backup Usage on the Basic Information page of the instance may show a value of 0. The value is automatically restored after the next scheduled backup is complete.

For example, in the following figure, the total backup size is 33.2 GB for data backups plus 20.19 MB for log backups. In the figure, Archived Backup refers to data backups retained for more than two years (730 days), and Data refers to non-archived data backups.备份大小

Backup size details

Relationship with bucket usage

  • Data backups and log backups are stored in a backup storage space. They do not occupy the storage space of your instance.

  • Logs are divided into local logs and log backups.

    Log

    Description

    Billing

    Purpose

    Local logs

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

    No fees are charged, but they occupy the instance's storage space.

    For example, you can use them to build a custom master-slave architecture.

    Log backups

    After you enable log backup, local logs are uploaded to the backup storage space in real time. The logs in the backup storage space are log backups.

    For more information, see the Backup Guide.

    Used to perform a point-in-time restore.

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

    • You can view the storage space occupied by local logs on the Monitoring and Alerts page of the instance. For more information, see View monitoring information.日志占用存储空间大小

Relationship to data size

The backup size can be larger or smaller than the data size.

Instances that use cloud disks use snapshot backups. The size of a snapshot backup can be much larger than the data size. The free quota for backups of an instance that uses cloud disks is 200% of the instance's storage capacity. The free quota for backups of an instance that uses high-performance local disks is 50% of the instance's storage capacity.

Note

When the size of a snapshot backup is calculated, the size of all non-empty blocks is included. If data is written in a scattered manner (for example, 3 MB of data may occupy two, three, or even four blocks), this creates more non-empty blocks. This in turn increases the size of the snapshot backup.

Relationship with instance architecture

The backup size is independent of the instance architecture. For example, if a high-availability (HA) instance and a Basic Edition instance have the same data, their backup sizes are the same. The HA architecture does not increase the backup size.

Delete or reduce data backups

Manually delete data backups

Note
  • You can manually delete only the MySQL backup data that is generated by a manual backup. You cannot manually delete automatic backup data. You can hover over the image icon in the Backup Policy column of the target backup set to determine whether the backup set was automatically generated or manually created.

  • You cannot manually delete manual backup sets that are database and table backups. Check the Backup Policy column for the target backup set to determine whether it is a Database/Table Backup.

  • The deletion of a manual backup set is permanent and cannot be recovered.

  1. Go to the RDS instance list, select a region in the top navigation bar, and then click the target instance ID.

  2. In the navigation pane on the left, click Backup and Restoration.

  3. On the Backup and Restoration page, choose Base Backups > Data Backup.

  4. In the Actions column of the target backup set, click 1 > Delete.

    image.png

Automatically delete data backups

Note

This method applies to deleting MySQL backup data from both manual backups and automatic backups.

  1. Go to the RDS instance list, select a region in the top navigation bar, and then click the target instance ID.

  2. In the navigation pane on the left, click Backup and Restoration.

  3. On the Backup and Restoration page, click the Backup Strategy tab.

  4. In the Basic Backup section, click Edit and shorten the data backup retention period.

    Important

    For example, if the data backup retention period is set to 30 days:

Reduce data backups

Method 1: Reduce the number of data backups

  1. Log on to the ApsaraDB RDS console and go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the instance ID.

  2. In the navigation pane on the left, click Backup and Restoration.

  3. On the Backup and Restoration page, click the Backup Strategy tab.

  4. In the Basic Backup section, click Edit and reduce the backup cycle.

Method 2: Use sparse backup to retain a minimum number of backup sets

Instances in some regions support upgrading the Backup Policy page to the Premium Edition. After the upgrade, you can use sparse backup to configure backup policies with more flexibility and retain a minimum number of backup sets. For more information, see Sparse backup.

Method 3: Delete or migrate data that does not require backups

Reduce or disable log backups

When you enable the log backup feature, local logs (binary logs) are uploaded to your backup storage space in real time. You can delete or reduce these log backups as needed.

Note

Local logs for MySQL are log files that record all operations that change data in a MySQL database. You can use these logs for purposes such as building a custom master-slave architecture or subscribing to data. For more information about how to query or delete local logs, see Manage local logs (binary logs).

Reduce log backups

Method 1: Shorten the log backup retention period

Note

You can set the log backup retention period only if Log Backup or Point-in-time Restore is enabled. To check the enabling status, see View the log backup policy.

  1. Log on to the ApsaraDB RDS console and go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the instance ID.

  2. In the navigation pane on the left, click Backup and Restoration.

  3. On the Backup and Restoration page, click the Backup Strategy tab.

  4. In the Basic Backup section, click Edit. Then, shorten the Log Backup Retention Period (days). For more information, see Differences between the PITR and log backup features.

    Important

    For example, if Log Backup Retention Period (days) is set to 30:

    • For instances that have not been upgraded to support point-in-time recovery, log backup sets older than 30 days are automatically deleted and cannot be recovered. Proceed with caution.

    • For instances that have been upgraded to support point-in-time recovery, the system retains the log backups required to perform point-in-time recovery to any point within the 30-day period. As a result, the total retention period for some log backups may exceed 30 days. For more information, see Point-in-time recovery policy.

Method 2: Use sparse backup to retain the minimum number of backup sets

Instances in some regions now support upgrading the backup policy page to the Premium Edition. After you upgrade, you can use sparse backup to configure backup policies more flexibly and retain the minimum number of backup sets. For more information, see Sparse backup.

Method 3: Reduce unnecessary insert, delete, and update operations, and minimize updates to large objects

Insert, delete, and update operations on a database increase the size of its log backups.

Note

You can use the SQL Explorer feature to view the insert, delete, update, and query records in your database.

Disable log backup

  1. Log on to the ApsaraDB RDS console and go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the instance ID.

  2. In the navigation pane on the left, click Backup and Restoration.

  3. On the Backup and Restoration page, click the Backup Strategy tab.

  4. In the Basic Backup section, click Edit. Then, turn off the Log Backup or Point-in-time Restore switch.

    Important

    After you disable the log backup feature, the system automatically deletes existing log backup files within 1 to 3 minutes. Deleted log backup files cannot be restored. Proceed with caution.

Related operations