This topic describes how to retain the backup files of an ApsaraDB RDS for MySQL instance for a long period of time. Long-term retention allows you to protect your data assets.

Background information

When you use ApsaraDB RDS, you may encounter the following issues:
  • Your data is unexpectedly deleted. However, you have backed up only the data that was generated over the last seven days. As a result, you cannot restore the data that was generated seven days ago.
  • Your RDS instance is released by mistake or due to overdue payments. However, it has been a long period of time since your RDS instance was released. As a result, you cannot recover your data or backup files.
  • You want to release your RDS instance but retain its backup files for future use.
We recommend that you follow the instructions in this topic to retain the backup files of your RDS instance. This ensures that you can recover your data if required.

Increase the backup retention period

You can increase the backup retention period. This allows you to restore earlier data.
Note This operation increases the size of your backup files. This operation may also increase the storage cost of your RDS instance. For more information, see Size of backup and Billing.
  1. Log on to the ApsaraDB RDS console and go to the Backup and Restoration page. On the Backup Settings tab, click Edit.
  2. Increase the data backup retention period.
    • Specify the number of days for which you want to retain data backup files. For example, you can increase the number from the default value 7 to 30.
    • If your RDS instance uses local SSDs, you can select Long-term Retention. In this case, you do not need to specify the data backup retention period. All data backup files are retained.
  3. Increase the log backup retention period.

Retain data backup files after instance release

In most cases, after your RDS instance expires or becomes overdue, ApsaraDB RDS retains your RDS instance and its backup files based on the specified retention period. After the specified retention period elapses, ApsaraDB RDS releases your RDS instance and deletes its backup files. For more information, see Unlock or rebuild an expired or overdue ApsaraDB RDS instance.

If Backup Retention Policy After Release is selected, ApsaraDB RDS retains your RDS instance and its data backup files regardless of whether your RDS instance is automatically or manually released.

Note This feature is supported only when your RDS instance uses local SSDs.
  1. Log on to the ApsaraDB RDS console and go to the Backup and Restoration page. On the Backup Settings tab, click Edit.
  2. Select Backup Retention Policy After Release.

Download a backup file

You can download a backup file of your RDS instance to your computer or to your Elastic Compute Service (ECS) instance. The backup file can be stored on your computer or ECS instance for a long period of time. For more information, see What is ECS? and Procedure.