Using OCI Database with PostgreSQL Backups in Disaster Recovery
Use an OCI Database with PostgreSQL database system backup for disaster recovery.
-
Use one of the following methods to copy a database system backup. Your method differs depending on whether the backup already exists or not:
- Enable backup copies when creating the database system.
- Enable backup copies for an existing database system by editing its management policy.
- Copy an existing backup to another region.
- If the primary region is unavailable, use the backup that was copied to another region to create a new database system in that region. If the primary database system used a custom configuration, you might need to create a similar configuration in the backup region as well. When creating the database system, enable automatic backups so that you can restore back to the primary region later.
- After the new database system is available, redirect applications to use its endpoint.
- When the primary region becomes available, copy a backup to the original region.
- Restore the original database system using the backup you copied to its region.
- After the original database system is restored, redirect applications to use its endpoint.
Depending on the schedule of the management policy, RPO could vary from a few minutes to greater than 24 hours. Using the preceding process, RTO could be a matter of minutes.