Plan disaster recovery
This page describes Firestore with MongoDB compatibility features that can help you create and implement disaster recovery plans.
Disaster recovery planning for cloud infrastructure outages
To protect against potential cloud infrastructure disruptions in Google Cloud such as a zone or region experiencing an outage, Firestore with MongoDB compatibility replicates data across multiple replica databases.
The replication architecture depends on whether the database is in a regional location or a multi-region location. Regional databases synchronously replicate data across at least three zones. Multi-region databases synchronously replicate data across five zones in three regions with two serving regions and one witness region. Multi-region databases maximize the availability and durability of databases by providing 99.999% availability. Regional databases provide 99.99% availability.
Firestore with MongoDB compatibility automatically handles replication for you and doesn't require additional configuration or provisioning. For additional information, see the following:
For more information on the replication architecture, see Architecting disaster recovery for cloud infrastructure outages.
Disaster recovery planning for data
To protect against data disasters like accidental deletion or modification of data, use scheduled backups.
Scheduled backups
Backups support a maximum retention period of 14 weeks. You can schedule daily or weekly backups. You can restore your database from a backup to a new Firestore with MongoDB compatibility database in the same project. For more details, see Back up and restore data.