Created
August 21, 2012 08:41
-
-
Save prcaen/3413601 to your computer and use it in GitHub Desktop.
Backup database periodically
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
# At 9, 13, 16 and 19 hour every monday, tuesday, wednesday, thursday and friday | |
* 9,13,16,19 * * 1,2,3,4,5 root /Applications/XAMPP/xamppfiles/bin/mysqldump -u root --all-databases | gzip > /Users/pierrick/Documents/Backups/Sites/database_`date +"%m_%d_%Y_%H_%M"`.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment