Last active
March 21, 2018 15:02
-
-
Save strangerstudios/e1a93f7fc71166b2bd12 to your computer and use it in GitHub Desktop.
Shell script to backup and gzip your database.
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
#change the username, password, and database names below. | |
mysqldump -uusername -ppassword database > database_`date +'%Y-%m-%d'`.sql | |
gzip database_`date +'%Y-%m-%d'`.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment