Skip to content

Instantly share code, notes, and snippets.

@javamonn
Created March 2, 2015 17:16
Show Gist options
  • Save javamonn/1f443115b44d22ff1257 to your computer and use it in GitHub Desktop.
Save javamonn/1f443115b44d22ff1257 to your computer and use it in GitHub Desktop.
Dumping DB from MongoHQ
mongodump -h candidate.12.mongolayer.com:10054 -d *db name* -u *username* -p *password* -o *output-dir*
@javamonn
Copy link
Author

javamonn commented Mar 2, 2015

restoring from dump:

 mongorestore -db *db-to-restore-into* *dir-to-restore-from*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment