Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# How to upload local db to meteor:
# -h = host, -d = database name, -o = dump folder name
mongodump -h -d meteor -o meteor
# get meteor db url, username, and password
meteor mongo --url
# Response will be something like this:
# mongodb://
# The credentials will only last for a minute, so you've got to work quickly
# (or make a script for it, like the inverse version of!
# -h = host, -d = database name (app domain), -p = password, meteor = the path to the dumped db folder name
mongorestore -u client -h -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