Last active
October 27, 2022 13:34
-
-
Save tlesh989/0ec9f547a963568d80c2c7f8091eefd3 to your computer and use it in GitHub Desktop.
Live Migration from DigitalOcean MongoDB cluster to MongoDB Atlas using mongomirror
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
destinationPassword: password | |
uri: mongodb+srv://username:[email protected]/admin?tls=true&authSource=admin&replicaSet=replicaset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongomirror \ | |
--destination atlas-rs-shard-0/node0.mongodb.net:27017,node1.mongodb.net:27017,node2.mongodb.net:27017 \ | |
--destinationUsername username \ | |
--drop \ | |
--sslCAFile ca-certificate.crt \ | |
--oplogPath oplog \ | |
--httpStatusPort 8080 \ | |
--config=config.yaml \ | |
2>&1 | tee -a mongomirror.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment