Created
September 1, 2014 09:12
-
-
Save mpfund/5ffa29b68d7379403eb0 to your computer and use it in GitHub Desktop.
MongoDb Commands
This file contains hidden or 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
| Start with db path: | |
| mongod --dbpath c:\db | |
| repair db after unexpected shutdown: | |
| mongod --dbpath c:\db --repair | |
| backup: | |
| mongodump --out /data/backup/ | |
| restore: | |
| mongorestore /data/backup/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment