You can configure the lifecycle of a backup schedule based on your business requirements. The lifecycle of a backup schedule indicates the retention period of backup sets that are generated based on the backup schedule. This topic describes how to modify the lifecycle of a backup schedule.
Prerequisites
A backup schedule is created in the Database Backup (DBS) console, or a default physical backup schedule is generated for an ApsaraDB RDS instance that is automatically connected to DBS.
You cannot modify the lifecycles of backup schedules that are generated for cross-region ApsaraDB RDS backups in the DBS console.
Procedure
Log on to the DBS console. In the left-side navigation pane, click Backup Schedules to go to the Backup Schedules page.
Find the backup schedule that you want to manage and click Manage in the Actions column. The Configure Task page appears.
In the Lifecycle Information section, click Edit Lifecycle.
On the page that appears, modify the retention periods of full backup data and incremental backup data and click Save.
ImportantYou can specify a retention period in the range of 7 to 3,650 days. After the retention period expires, backup sets are automatically deleted.
If you do not enable incremental backup, you can specify a retention period only for full backup data in the console. For more information about how to enable incremental backup, see Enable or disable incremental log backup.
References
For more information about the databases that support incremental backup, see Database engines and features.
You can also modify the retention period of backup data by calling an API operation. For more information, see ModifyStorageStrategy.