Skip to content

Instantly share code, notes, and snippets.

@mpfund
Created September 1, 2014 09:12
Show Gist options
  • Save mpfund/5ffa29b68d7379403eb0 to your computer and use it in GitHub Desktop.
Save mpfund/5ffa29b68d7379403eb0 to your computer and use it in GitHub Desktop.
MongoDb Commands
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