Navigation

Backup and Restore Cluster Data

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.

Considerations

Be aware that:

  • Atlas backups are not available for M0 (Free Tier) clusters. You may use mongodump to back up your M0 cluster data and mongorestore to restore that data. To learn how to manually back up your data, see Command Line Tools.

  • You must restore the backup to a cluster running either the same major release version, or the next higher one. Atlas doesn’t support restoring to older versions.

    You can still use backups made before an upgrade.

    Example

    To restore a 3.6 cluster to 4.0:

    1. Restore the old 3.6 backup to another 3.6 cluster.
    2. Upgrade the restored cluster to 4.0.

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 Cloud Backups.

To learn how to restore cluster from a Cloud Backup, see Restore a Cluster from a Cloud Backup.

Legacy Backups

Available in M10+ Clusters.

Legacy Backup Deprecated

MongoDB deprecated the Legacy Backup feature. Clusters that use Legacy Backup can continue to use it. MongoDB recommends using Cloud Backups. Effective 23 March 2020, all new clusters can only use Cloud Backups.

Atlas uses incremental snapshots to continuously back up your data. Continuous backup snapshots are typically just a few seconds behind the operational system.

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. You can also query a continuous snapshot.

With Atlas legacy backup, the total number of collections across all databases in a Atlas cluster cannot equal or exceed 100,000.

To learn more about Legacy Backups, see Legacy Backups.

To learn how to restore cluster from a Legacy Backup, see Restore a Cluster from a Legacy Backup Snapshot.

M2 / M5 Snapshots

Backups are automatically enabled for M2 and M5 shared-tier clusters and cannot be disabled. Atlas takes daily snapshots of your M2 and M5 clusters which you can restore to clusters tiers M2 or greater.

To learn more about M2 / M5 daily snapshots, see Shared Tier Backups.

To learn how to restore a cluster from an M2 / M5 snapshot, see Restore a Cluster from an M2/M5 Snapshot.