Created
March 19, 2019 17:32
-
-
Save ilhamarrouf/1d4fbf5de1294b2c7f9496577cd24887 to your computer and use it in GitHub Desktop.
Crontab database backup mysql
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
| 0 3 * * * /usr/bin/mysqldump -u root --password=P@ssw0rd mydb > /root/mydb$(date +\%w).sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment