Created
November 2, 2016 03:59
-
-
Save AJNOURI/00fe9e7bc90d43f09b69d3f0ba0c4c74 to your computer and use it in GitHub Desktop.
Backup 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
#!/bin/bash | |
mongodump --out /backup/mongodb-$(date +"%d-%m-%Y-%H:%M:%S") | |
mongodump --out /backup/mongodb-latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment