Skip to content

Instantly share code, notes, and snippets.

@stephanbogner
Created June 22, 2017 06:57
Show Gist options
  • Save stephanbogner/50334871f86e0ff37b66e18aeb739e4a to your computer and use it in GitHub Desktop.
Save stephanbogner/50334871f86e0ff37b66e18aeb739e4a to your computer and use it in GitHub Desktop.
Handy commands for mongoDB
mongodump --db <yourdb> --gzip --archive=/path/to/archive
mongorestore --gzip --archive=/path/to/archive
mongorestore --gzip --archive=/path/to/archive/fileName.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment