Skip to content
Yaşar İçli edited this page Dec 2, 2015 · 2 revisions

Dump MongoDb

Make sure you have the meteor project running.

$ meteor mongo nes.meteor.com --url

This will return you DB path. It will look something like this: nes.meteor.com

> username:[email protected]:27017/nes_meteor_com

The we can dump the DB:

$ mongodump --username username 
            --password password 
            --host production-db-d3.meteor.io 
            --port 27017 
            --db nes_meteor_com

Import db Local

In the initiated meteor folder, make sure you have the correct URL, by using the ame code as before:

$ meteor mongo –url

And in the console, enter:

$ mongorestore -h 127.0.0.1:3001 --db meteor dump/nes_meteor_com/

Your browser should automatically update.

Clone this wiki locally