Skip to content

Instantly share code, notes, and snippets.

@tlesh989
Last active October 27, 2022 13:34
Show Gist options
  • Save tlesh989/0ec9f547a963568d80c2c7f8091eefd3 to your computer and use it in GitHub Desktop.
Save tlesh989/0ec9f547a963568d80c2c7f8091eefd3 to your computer and use it in GitHub Desktop.
Live Migration from DigitalOcean MongoDB cluster to MongoDB Atlas using mongomirror
destinationPassword: password
uri: mongodb+srv://username:password@primary.mongo.ondigitalocean.com/admin?tls=true&authSource=admin&replicaSet=replicaset
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