MongoDB.local SF, Jan 15: See the speaker lineup & ship your AI vision faster. Use WEB50 to save 50%
Find out more >
Docs Menu
Docs Home
/ /

Export Cloud Backup Snapshot

Note

This feature is not available for M0 Free clusters and Flex clusters. To learn more about which features are unavailable, see Atlas M0 (Free Cluster) Limits.

Atlas lets you export your Cloud Backup snapshots to an object storage service.

To learn how to manage automated backup policies and schedules, see Manage Backup Policies.

Atlas currently supports the following object storage services:

  • AWS S3 buckets

  • Azure Blob Storage

  • Google Cloud Storage buckets

Additionally, Atlas supports exporting snapshots to AWS S3 buckets using PrivateLink.

Note

If you export backups to AWS S3, you can enable AWS S3 Object Lock to ensure the immutability of your backup files required for compliance and security. Object locks prevent deletions and modifications of exported backup files.

You can manually export individual snapshots or set up an export policy for automatic export of your snapshots. For automatic exports, you must specify a frequency in your export policy:

  • Daily

  • Weekly

  • Monthly

  • Yearly

Atlas automatically exports any backup snapshot with the frequency type that matches the export frequency. The exported result is a full backup of that snapshot.

Example

Consider the following:

  • A backup policy that sets a weekly and monthly snapshot schedule

  • An export policy that sets a monthly export frequency

Suppose, at the end of the month, the weekly and monthly snapshots happen on the same day. There would be 4 snapshots of which 3 would be weekly snapshots and the fourth snapshot, although treated as a weekly snapshot by Atlas, would also be the monthly snapshot because it happened on the same day. Atlas will export the monthly snapshot only because the export frequency matches the snapshot frequency for that snapshot. To export the weekly snapshots as well, update the export policy to export weekly snapshots also. If the export frequency is set to weekly, Atlas would export all 4 snapshots.

As the export progresses, you may see partial results in your object storage service.

Atlas persists documents in snapshots irrespective of Time to Live settings. You can access these documents from your snapshot past their Time to Live deadline.

To learn about snapshot export pricing, see Snapshot Export Costs.

Atlas uploads an empty file to /exported_snapshots/.permissioncheck when you:

After Atlas finishes exporting, Atlas uploads a metadata file named .complete and a metadata file named metadata.json for each collection.

If an export job fails:

  • Atlas doesn't automatically try to export again.

  • Atlas doesn't remove any partial data in your object store.

Atlas uploads gzip-compressed Extended JSON (v2) documents. Atlas doesn't upload these documents in order. The following is the path to the files on your object store:

/exported_snapshots/<orgName>/<projectName>/<clusterName>/<initiationDateOfSnapshot>/<timestamp>/<dbName>/<collectionName>/<shardName>.<increment>.json.gz

Where:

<orgName>

Name of your Atlas organization.

<projectName>

Name of your Atlas project.

<clusterName>

Name of your Atlas cluster.

<initiationDateOfSnapshot>

Date when snapshot was taken.

<timestamp>

Timestamp when the export job was created.

<dbName>

Name of the database in the Atlas cluster.

<collectionName>

Name of the Atlas collection.

<shardName>

Name of the replica set. For sharded collections, this is the name of the primary shard.

<increment>

Count that is incremented as chunks are uploaded. Starts at 0.

You can't perform the following actions:

To manage your Cloud Backup snapshots, you must have Project Backup Manager or Project Owner access to the project.

Users with Organization Owner access must add themselves as a Project Backup Manager or Project Owner to the project before they can manage Cloud Backup snapshots.

Back

Restore Using Encryption at Rest

On this page