Forked from iMagdy/how_to_upload_local_db_to_meteor_app.sh
Created
August 12, 2014 14:43
-
-
Save kylemclaren/cd9fb6828ba738c52bb9 to your computer and use it in GitHub Desktop.
This file contains 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
# 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/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment