All Products
Search
Document Center

ApsaraDB RDS:Delete or reduce backup files

Last Updated:Apr 08, 2025

This topic describes how to delete or reduce backup files of an ApsaraDB RDS for PostgreSQL instance to reduce backup storage costs.

Usage notes

  • If you delete backup files, the backup files are permanently deleted, and deleted backup files cannot be restored.

  • The data backup files and log backup files of your RDS instance occupy the backup storage that is provided by Alibaba Cloud for the RDS instance. These backup files do not occupy the storage capacity of your RDS instance. For information about how to release storage, see FAQ about storage capacity.

Delete or reduce data backup files

Delete data backup files

Automatic deletion

Note

You can use this method to delete the backup files that are generated from manual backups and automatic 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 left-side navigation pane, click Backup and Restoration.

  3. On the page that appears, click the Backup Strategy tab.

  4. In the Data Backup Settings section, click Edit to reduce the backup retention period.

    The minimum backup retention period is 7 days. Backup sets that are retained for a longer period than the specified backup retention period are automatically deleted.

Manual deletion

Note

This method can be used to delete the data backup files that are generated only from manual backups. You can click the image icon in the Backup Method column of the required backup set. If Manual Backup is displayed, you can manually delete the backup set.

  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 left-side navigation pane, click Backup and Restoration.

  3. On the page that appears, click the Base Backups tab and then the Data Backup tab.

  4. Find the backup set that you want to delete and click Delete in the Actions column.1

Reduce data backup files

  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 left-side navigation pane, click Backup and Restoration.

  3. On the page that appears, click the Backup Strategy tab.

  4. In the Data Backup Settings section, click Edit to reduce the backup frequency.

    Note

    To ensure data security, we recommend that you set the backup frequency to at least twice a week.

Delete log backup files

You cannot reduce the backup frequency to reduce the number of log backup files. You can reduce the log backup retention period or disable the log backup feature to delete log backup files.

  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 left-side navigation pane, click Backup and Restoration.

  3. On the page that appears, click the Backup Strategy tab.

  4. In the Data Backup Settings section, click Edit.

    • Reduce the log backup retention period

      The minimum log backup retention period is 7 days. Backup sets that are retained for a longer period than the specified backup retention period are automatically deleted.

    • Disable the log backup feature

      After you disable the log backup feature, the system automatically deletes existing log backup files within 1 minute to 3 minutes. In this case, you cannot restore data by point in time.

Related operations

Operation

Description

DeleteBackup

Deletes data backup files of an instance.

ModifyBackupPolicy

Modifies the backup policy of an instance.