Last active
July 19, 2020 05:12
-
-
Save nfhipona/faf2d7bf19ccd03330895b3f4d387c27 to your computer and use it in GitHub Desktop.
Crontab - mysqldump
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
crontab schedule: | |
30 23 * * * mysqldump -hhost -uuser -ppassword dbname --single-transaction --quick --lock-tables=false > ..location/filename-backup-`date "+\%F"`.sql | |
running script | |
30 23 * * 7 /home/ubuntu/scripts/./bash_script.sh | |
manual dump bash | |
mysqldump -hhost -uuser -ppassword dbname --single-transaction --quick --lock-tables=false > ..location/filename-backup-`date '+%F'`.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment