Managed RDS instances deployed with Qovery have by default a backup option enabled on the same region where the RDS instance is located. However, for enhanced disaster recovery and compliance purposes, you may need to set up multi-region backups. This guide will help you configure an AWS Backup job to create additional backups of your RDS instances in a different region. Multi-region backups provide several benefits:
- Improved disaster recovery: If one AWS region becomes unavailable, you can restore your database from a backup in another region.
- Compliance: Some regulations require data to be backed up in geographically distinct locations.
- Data migration: Multi-region backups can facilitate moving your database to a different region if needed.
For more information about AWS Backup, have a look at this documentation.
How to configure
Make sure you have already your Managed Database (RDS PostgreSQL or MySQL) deployed with Qovery
1. Create an AWS Backup Plan
Go to the AWS Console and follow this guide to create your AWS Backup plan. For the setup, you can use the default settings but take into account the following points:
- Vault: you can use the default vault as long as you don't have any additional security requirement (share snapshots externally etc.)
- Start time: update the start time based on your needs
- Total retention period: update the retention period for the snapshots based on your needs
- Copy to destination: at this step, select the region where you want to create the database snapshot
Press Create Plan
2. Assign resources
On the next step, we will define the resource that this backup job should target:
- Select the option "Include specific resource types"
- In the dropdown list for "Select specific resource types", select "RDS"
- (Optional) if you don't want this plan to run on every RDS instance, uncheck the option "All databases" and select the databases from the dropdown list
- Press "Assign Resources"
Checking the new backups
Now, based on your schedule, you should see backup jobs starting and creating backups in the selected vault:
- Select the region where the backup should be created
- Open the "Vault" section on the right
- Select the vault that the AWS backup job should target
- Verify that new "Recovery points" have been created
From this page you can restore a backup (refer to the AWS documentation for more information).