All Products
Search
Document Center

ApsaraDB RDS:Sparse backup

Last Updated:Mar 28, 2026

As your RDS for MySQL backup history grows, retaining a full backup set every day for a year accumulates significant storage costs. Sparse backup lets you stack multiple backup policies with different schedules and retention periods, keeping only the minimum number of backup sets needed for your recovery requirements. This reduces recovery time and lowers backup storage costs compared to regular backup.

How it works

Sparse backup stacks multiple independent backup policies on a single instance. Each policy defines a schedule (weekly, monthly, or yearly) and a retention period. Together, the policies form a tiered strategy that keeps recent backups dense and historical backups sparse.

ItemRegular backupSparse backup
Retention policyMust retain 2–7 backup sets per weekFlexible — retain the minimum backup sets across weekly, monthly, and yearly cycles
Storage costHigher — backup sets accumulate over timeLower — only the minimum required backup sets are kept

Example: With regular backup, you might retain one backup set per day for 365 days. With sparse backup, you can retain daily backups for 7 days, Monday backups for 30 days, month-end backups for 365 days, and a yearly backup indefinitely — using far fewer backup sets in total.

Prerequisites

Before you begin, ensure that you have:

Switch to the advanced backup policy

Important

Switching to the advanced backup policy is irreversible. You cannot switch back to the basic version.

If you have already switched, skip this section.

  1. Go to the Instances page. 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 Restoration.

  3. On the Backup and Restoration page, click the Backup Strategy tab, then click Switch to Advanced Backup Policy.

    Important

    If the Switch to Advanced Backup Policy button is not visible, submit a ticket to request access. Refresh the page after your request is approved.

    image

  4. In the dialog box, select Understood and click OK.

The Backup Policy page now appears in the advanced layout, as shown below. You can configure sparse backup policies on this page.

image

Set a sparse backup policy

  1. Go to the Instances page. 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 Restoration.

  3. On the Backup and Restoration page, click the Backup Strategy tab, then click the circled number between MySQL and Level-1 Backup.

    image.png

  4. In the dialog box, click Add Backup Policy, configure the policy, then click OK. For other parameter settings, see Automatic backup and Backup encryption.

    RDS for MySQL 5.6 and 5.7 instances on the high-availability series with high-performance local disks support High-frequency Incremental Backup. When enabled, the system performs physical incremental backups at the configured frequency in addition to the scheduled full backups. The retention period for high-frequency incremental backup sets must be 7–30 days and cannot exceed the retention period of the backup policy. If a full backup set expires but its dependent incremental backup sets have not, the full backup set is retained until all its incremental backup sets expire. For more information, see Use the high-frequency physical backup feature.
    ParameterOptionsConstraints
    Backup cycleEvery Week — select one or more days of the weekThe first policy is fixed to Every Week, must cover at least two days, and cannot be deleted
    Every Month — select one or more days of the month, or Last Day Of Each Month
    Every Year — select a specific day (for example, January 1)
    Backup timeThe time window for performing the backup
    Retention period7–7,300 days, or Long-term RetentionEach policy can have a different retention period. If multiple policies overlap on the same day, the system creates one backup set and retains it for the longest period among those policies
  5. In the lower-left corner of the Backup Policy tab, click Save.

    A sparse backup policy takes effect 10–15 minutes after you save it.

Configuration example

The following configuration implements a four-tier retention strategy that balances short-term recovery speed with long-term retention at minimal storage cost.

image.png
PolicyScheduleRetention
Every day (Monday–Sunday)7 days
Every Monday30 days
First and last day of each month365 days
January 1 of each yearLong-term

On days when multiple policies overlap, the system creates one backup set and keeps it for the longest retention period. For example, on Monday January 1, policies ①, ②, and ④ all apply — the system creates one backup set and retains it long-term.

Limits

  • Deleting a backup policy does not delete already-generated backup sets. Those sets are retained until their original retention period expires.

  • If a backup fails within the backup window on a scheduled day (due to a failed backup, a locked instance, or a dump that is not completed before the level-1 backup expires), the system skips the backup for that day without creating an extra backup set.

Billing

Backup storage is free up to your free quota. If your total backup storage exceeds the free quota, you are charged for the excess. For pricing details, see Backup storage costs.

What's next

View backup policies

On the Backup Policy page, hover over the circled number between MySQL and Level-1 Backup to see all configured policies. The number in the circle indicates how many policies are configured.

image

Delete a backup policy

On the Level-1 Backup page, you can delete any backup policy except the first one (which is fixed to Every Week and cannot be deleted).

image