Cron is not executed. FREEBSD & nbsp; system: write a backup database file & #39; mysqlbak & #39; file content: Tbt 'date & nbsp; & nbsp; + % Y _ % m _ % d _ % H % M % s' mysqldump & nbsp;-uttt & nbsp;-pttt & nbsp; ttt & nbsp; cron is not executed, so it's urgent
FREEBSD system:
Write a backup database file 'mysqlbak'
File content:
Tbt = 'date + % Y _ % m _ % d _ % H % M % s'
Mysqldump-uttt-pttt ttt -- default-character-set = gb2312>/8799/uujia _ $ Tbt. SQL
Directly input mysqlbak to perform this backup,
But it cannot be executed under cron. I don't know why. please help me analyze it.
This is how I created the crontab.
Crontab-e
*/1 ***** runmysqlbak
Waiting first
------ Solution --------------------
Add the absolute path.
------ Solution --------------------
*/1 *****/usr/local/etc/mysqlbak. sh
In addition, mysqldump in your backup script must use the absolute path:
/Usr/local/bin/mysqldump-uttt-pttt ............................ ....