Created
June 19, 2018 15:29
-
-
Save vanessasoutoc/547d1d6a0529cdfcd589a2b7e5ce5a4e to your computer and use it in GitHub Desktop.
Mongo Backup and Restaure
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
//create dump mongo | |
$ mongodump --host --port --db --username --password --out /path/dump/out | |
//restaure db mongo | |
$ mongorestore --host --port --db --username --password /path/dumps/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment