Last active
May 4, 2018 08:55
-
-
Save wikiti/37d1356d5d51d01c5e9cfe17911d9654 to your computer and use it in GitHub Desktop.
Create a MongoDB backup with mongodump
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
# Run in a shell the following command: | |
mongodump | |
# A `dump` folder will be created on the current working directory. | |
# To compress that folder, use dump. | |
tar -czvf backup.tar.gz dump/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment