Back Up, Restore, and Archive Data
On this page
Backups are copies of your data that encapsulate the state of your cluster at a given time. Backups provide a safety measure in the event of data loss. If you have strict data protection requirements, you can enable a Backup Compliance Policy to protect your backup data.
Required Access
To manage or restore backups for a cluster, you must have
Project Owner
access to the project.
Users with Organization Owner
access must add themselves as a Project Owner
to the project before they can manage or restore backups.
Considerations
Be aware that:
Atlas backups are not available for
M0
Free clusters. You may use mongodump to back up yourM0
cluster data and mongorestore to restore that data. To learn how to manually back up your data, see Command Line Tools.You can't write to your cluster while a backup restore is in progress for that cluster.
Cloud Backups
Available in M10+ Clusters.
Atlas uses the native snapshot capabilities of your cloud provider to support full-copy snapshots and localized snapshot storage.
Atlas supports Cloud Backups on:
To learn more, see Back Up Your Cluster.
To learn how to restore cluster from a Cloud Backup, see Restore from a Scheduled or On-Demand Snapshot.
Atlas Flex and M2 / M5 Snapshots
Backups are automatically enabled for Flex clusters, M2
and M5
Shared clusters and can't be disabled. Atlas takes
daily snapshots of your Flex clusters and
Shared clusters, which you can restore to Flex clusters tiers or
M10
and greater.
To learn more about backing up your cluster, refer to Flex Cluster Backups and Shared Cluster Backups.
To learn more about restoring your cluster, refer to Restore from a Scheduled or On-Demand Snapshot.
Serverless Instance Snapshots
Atlas uses the native snapshot capabilities of your cloud provider to support full-copy snapshots and localized snapshot storage.
Backups are automatically enabled for Serverless instances. You can't disable Serverless instance backups.
Atlas offers the following backup options for Serverless instances:
Option | Description |
---|---|
Serverless Continuous Backup | Atlas takes incremental snapshots of the data in your Serverless instance every six hours and lets you restore the data from a selected point in time within the last 72 hours. Atlas also takes daily snapshots and retains these daily snapshots for 35 days. To learn more, see Serverless Instance Costs. |
Basic Backup | Atlas takes incremental snapshots of the data in your Serverless instance every six hours and retains only the two most recent snapshots. You can use this option for free. |
You can restore Serverless instance snapshots to other Serverless instances and dedicated clusters.
To learn more, see:
Legacy Backups
Available in M10+ Clusters.
Atlas ensures continuous cloud backup of replica sets and consistent, cluster-wide snapshots of sharded clusters.
For each Atlas project with legacy backups enabled, Atlas stores the legacy backup snapshots in the backup data center location where legacy backups were first enabled for a cluster in the project.
Continuous snapshots support restoring from the full snapshot or from a Continuous Cloud Backup between snapshots.
With Atlas legacy backup, the total number of collections
across all databases in a Atlas cluster can't be equal to or
exceed 100,000
.