mysqldump and crontab(linux) [closed]

我的未来我决定 提交于 2019-12-13 11:11:42

问题


I want to make an automatic backup of my database, so i wrote like this

00 10   * * *   root     mysqldump -u root -ppasswordD billing "/home/backup/database_`date '+%m-%d-%Y'`.sql"

But it is not working, any ideas please?

Thanks and regards,


回答1:


00 10 * * * mysqldump -u root -ppasswordD billing "/home/backup/database_`date '+%m-%d-%Y'`.sql"

If it fails or produces any output then you will get a mail for root, read it with the command "mail" or read /var/log/cron.log ;)



来源:https://stackoverflow.com/questions/10310206/mysqldump-and-crontablinux

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!