public

How to upload local db to meteor app

  • Download Gist
how_to_upload_local_db_to_meteor_app.sh
Shell
1 2 3 4 5 6 7 8 9 10
# How to upload local db to meteor:
 
# -h = host, -d = database name, -o = dump folder name
mongodump -h 127.0.0.1:3002 -d meteor -o meteor
 
# get meteor db url, username, and password
meteor mongo --url myapp.meteor.com
 
# -h = host, -d = database name (app domain), -p = password, meteor = the path to the dumped db folder name
mongorestore -u client -h production-db-a2.meteor.io.meteor.com:27017 -d myapp_meteor_com -p 'password' meteor/

And here's how to dump the remote meteor db so you can import to your local db http://stackoverflow.com/a/12447710/559105

Hi I'm getting the following errors any ideas what I'm doing wrong

ERROR: ERROR: root directory must be a dump of a single database
ERROR: when specifying a db name with --db

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.