Created
April 14, 2020 01:42
-
-
Save bertrandmartel/ca58d9f92ab09fea1ede18f7dfa25fe6 to your computer and use it in GitHub Desktop.
Migrate from DocumentDB to DocumentDB using mongodump/mongorestore
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
mongodump --host [HOST] --username [USER] \ | |
--password [PASSWORD] --db rfp --authenticationDatabase admin \ | |
--readPreference secondary --ssl --sslCAFile rds-combined-ca-bundle.pem --sslAllowInvalidCertificates | |
mongorestore --uri="mongodb://<target_username>:<target_password>@<target_host>/?authSource=admin&replicaSet=rs0" \ | |
--ssl --sslCAFile rds-combined-ca-bundle.pem --sslAllowInvalidCertificates \ | |
--numInsertionWorkersPerCollection 64 dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment