Created
June 1, 2014 21:23
-
-
Save bajanReece/72123a4b59b5abda9e5d to your computer and use it in GitHub Desktop.
Cron task to do a mysqldump and then name the output as the day (number) of the week
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
10 23 * * * /usr/local/mysql/bin/mysqldump --add-drop-table -u My_User_Name -pSuperDuperPassword myAwesomDB > "/path/to/database_backups/myAwesomDB_"`date +\%u`.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See the man page for date for other options