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.
Supported Storage Services
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.
How Atlas Exports Snapshots
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.
Files Atlas Uploads
Atlas uploads an empty file to /exported_snapshots/.permissioncheck
when you:
Add a new object store for export
Start an export
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.
Exported Data Format
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:
| Name of your Atlas organization. |
| Name of your Atlas project. |
| Name of your Atlas cluster. |
| Date when snapshot was taken. |
| Timestamp when the export job was created. |
| Name of the database in the Atlas cluster. |
| Name of the Atlas collection. |
| Name of the replica set. For sharded collections, this is the name of the primary shard. |
| Count that is incremented as chunks are uploaded. Starts at
|
Limitations
You can't perform the following actions:
Export fallback snapshots.
Have more than one active export per snapshot.
Export view collections, or system collections, with the exception of
<database>.system.jscollections.Export snapshots from clusters in an Atlas project with IP-restricted Encryption at Rest enabled.
Export snapshots from clusters hosted on Azure or Google Cloud Storage in projects configured for Private Endpoints.
Required Access
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.