Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想自动备份我的数据库,所以我这样写
00 10 * * * root mysqldump -u root -ppasswordD billing "/home/backup/database_`date '+%m-%d-%Y'`.sql"
但它不起作用,请问有什么想法吗?
谢谢并恭祝安康,
00 10 * * * mysqldump -u root -ppasswordD billing "/home/backup/database_`date '+%m-%d-%Y'`.sql"
如果它失败或产生任何输出,那么您将收到一封 root 邮件,使用命令“mail”阅读它或阅读 /var/log/cron.log ;)