Last active
August 29, 2015 14:04
-
-
Save cedricporter/50ce57a319ee8edb2314 to your computer and use it in GitHub Desktop.
MySQL backup script
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/sh | |
# # m h dom mon dow user command | |
# 30 4 * * 1,3,4 root /root/backup_db.sh | |
# 41 4 * * 1,3,4 root /root/dropbox.py start | |
# 57 4 * * 1,3,4 root /root/dropbox.py stop | |
mysqldump -u root -p'password' --all-databases | gzip > /root/Dropbox/backups/mysql_bak/`date +%F`.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment