1# Step by Step Instructions
2Assuming in you are ssh'ed into an ubuntu 16 based machine
3
41. Dump the Source Database into a folder called `source-db-dump`
5`mongodump --host my-source-db.mongodbdns.com --port 27000 --username joao --password xpto --authenticationDatabase devops --db core --out /source-db-dump/`
6
72. Now restore the `core` db from the dummped folder `source-db-dump`
8`mongorestore --host my-destination-db.mongodbdns.com --port 27000 --username joao --password xpto --authenticationDatabase devops --db core --out /home/ubuntu/source-db-dump/core`
9
103. You can restore to other destinations also (eg. Atlas), `core` db from the dummped folder `source-db-dump`
11`mongorestore --host my-atlas-shard-0/my-atlas-shard-00-00-qruor.gcp.mongodb.net:27017,my-atlas-shard-00-01-qruor.gcp.mongodb.net:27017,my-atlas-shard-00-02-qruor.gcp.mongodb.net:27017 --ssl --username joao --password xpto --authenticationDatabase admin -d core /home/ubuntu/7dec/source-db-dump`
12
13
Created on 2/25/2019