Retention Policy for Archived Backups
For archived backups of PostgreSQL DB instances, the backup appliance retains restore points for the number of days defined in backup scheduling settings.
To track and remove outdated restore points from an archive backup chain, the backup appliance performs the following actions once a day:
- The backup appliance checks the configuration database to detect archive backup repositories that contain outdated restore points.
- If an outdated restore point exists in a archive backup repository, the backup appliance performs the following operations:
- Deploys a worker instance in an AWS Region where the backup repository is located to process a retention task.
By default, the backup appliance uses the default network settings of AWS Regions to deploy worker instances. However, you can add specific worker configurations. For more information on worker instances, see Managing Worker Instances.
- Transforms the archive backup chain in the following way:
- The backup appliance rebuilds the full archive backup to include data of the incremental archive backup that follows the full archive backup. To do that, the appliance injects into the full archive backup data blocks from the earliest incremental archive backup in the chain. This way, the full archive backup ‘moves’ forward in the archive backup chain.
- The backup appliance removes the earliest incremental archive backup from the chain as redundant — this data has already been injected into the full archive backup.
- The backup appliance repeats step 2 for all other outdated restore points found in the archive backup chain until all the restore points are removed. As data from multiple restore points is injected into the rebuilt full archive backup, the appliance ensures that the archive backup chain is not broken and that you will be able to recover your data when needed.
- If the worker instance was deployed, the backup appliance removes this worker instance from Amazon EC2 when the retention session completes.
|
Note |
If the number of retention tasks exceeds the specified limit, the remaining tasks will be queued. |


