Created
June 22, 2017 06:57
-
-
Save stephanbogner/50334871f86e0ff37b66e18aeb739e4a to your computer and use it in GitHub Desktop.
Handy 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
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