- Source cluster: 10.10.10.10
- Destination cluster: 10.10.20.10
mongodump --host 10.10.10.10 --port 27017 --archive --numParallelCollections=10 | \
mongorestore --host 10.10.20.10 --port 27017 --archive --numParallelCollections=10 --drop
Note: Use --gzip
to save bandwidth.
mongodump --host 10.10.10.10 --port 27017 --archive --gzip --numParallelCollections=10 | \
mongorestore --host 10.10.20.10 --port 27017 --archive --gzip --numParallelCollections=10 --drop
Migrate each collection per DB to new replica set
Note: Fill your information