Backup and Recovery
MongoDB Backups: A cluster can have multiple snapshots. They are created:
- 1.when a cluster is created, known as initial sync which usually happens in less than 24hs.
- 2.after a restore.
A snapshot is a copy of the data in the cluster at a certain time. Every 24 hours, a base snapshot is taken, and every Sunday, a full snapshot is taken. We keep snapshots for the last 7 days, so recovery is possible from up to a week ago.
You can restore from any snapshot as long as it was created with the same or older MongoDB patch version.
Snapshots are stored in S3 buckets in the same region as your database. Databases in regions where S3 Object Storage is not available will be backed up to
Recovery is achieved via restore jobs. A restore job is responsible to create and catalog a cluster restoration process. A valid snapshot reference is required for a restore job to recover the database from. The API exposes available snapshots of a cluster.
There must be no other active restore job for the cluster in order to create a new one.