Created
January 23, 2021 04:38
-
-
Save mgmgpyaesonewin/bb9516e46f77cc710f308926b4bb5a70 to your computer and use it in GitHub Desktop.
Backup Mongodb Database Archive in gzip format according to date
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
| mongodump --db <db-name> --gzip --archive > dump_`date +"%d-%m-%Y"`.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment