You can automatically restore a backup for a Cloud Manager deployment to an Atlas deployment.
In addition to the prerequisites, consider the following requirements and limitations when restoring from a Cloud Manager deployment.
You must have the Project Backup Admin role for the Cloud Manager project that contains the source database deployments and the
Project Ownerrole for the Atlas projects that contain the target database deployments.
DefaultRWConcernvalue on the source snapshot differs from the
DefaultRWConcernvalue on the target database deployment, Atlas overrides the value on the source snapshot with the value on the target database deployment. If there is no value configured for the
DefaultRWConcernon the target database deployment, Atlas keeps the value of
DefaultRWConcernfrom the snapshot without explicit configuration. This may differ from the default value for that MongoDB version.
If you are restoring from a sharded cluster, the source and target clusters must have the same number of shards.
Atlas can't restore a sharded cluster snapshot to a replica set.
This feature is unavailable for
M0clusters and for serverless instances.
You can only restore a Cloud Manager snapshot to a Atlas cluster if either both deployments run the same version of MongoDB server, or the Atlas deployment runs one version higher than the Cloud Manager deployment.
Atlas deletes all existing data on the target database deployment prior to the restore. Depending on the type of restore taking place, the target cluster may be unavailable for the duration of the restore.
Before you restore a snapshot from a Cloud Manager deployment to an Atlas deployment, ensure that the hosts for your Atlas deployment have sufficient storage space for the restored databases, plus additional space for dataset growth. Use db.stats() to find the current database size.
Also, the instance types of the nodes in the Atlas deployment must have at least as much memory and throughput capacity as the nodes in the Cloud Manager deployment.
To learn more, see Restoring a Deployment to MongoDB Atlas.