Hello,
I have the following use case - I have a MongoDB Atlas Production cluster with 11 databases. I have to restore all but one databases on a DEV cluster. Is this possible? Can I restore selectively databases from one cluster to another?
Currently my actual scenario is:
mongodump of the DEV database to keep
cluster restore from PROD to DEV
delete the database which is not required
mongorestore of the DEV database in place of the deleted one
Hello Fabio,
Thanks for the answer, actually I’m using both of the methods, because the requirement is to keep 1 database in DEV and restore the rest from PROD to DEV.
I’m asked to automate this with pipelines using the mongo CLI. However I’m unable to do so, because I can automate a cluster restore snapshot (your first suggestion), but I don’t have the option to exclude one database.
The second option is correct, but with mongodump and mongorestore --nsExclude I’m generating a lot of traffic from Atlas to on prem (mongodump) and and this is not ok too.
Is there a way to restore excluding one database with “Restore from a Scheduled or On-Demand Snapshot - MongoDB Atlas”?