Created
September 15, 2011 08:46
-
-
Save yuki24/1218845 to your computer and use it in GitHub Desktop.
Useful Commands for MongoDB
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
# dump | |
mongodump --host localhost:27017 --db db_name --out /path/to/dump | |
# restore | |
mongod --port 27017 --drop --dbpath /path/to/dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment