I try to set mysqldump to crontab but for some reason it's not working. maybe it's too long? I tried to put it in /etc/crontab and crontab -e mysqldump --default-character-set=utf8... how can i fix that? |
I'm not sure about the size of the command line. I would create a small shell script with the command you want to call mysqldump and place that script in cron.daily (weekly/montly/ etc) and you would also be able to the script in crontab file with a shorter command Also, I would check if the user you are assigning can has enough permissions (like permission to write the output file ) Plus you can check if your command works without worrying about crontab, by just calling the script from the command line.
(28 Apr '10, 12:17)
Amos
|
Can you elaborate how is not working? On personal experience I was hit by cron running as a different user that assumed. You may want to try
a different problem I also had was that the first run took longer than the cron interval, in fact short-circuiting the backup. You may want to run the first backup from the command line and check how long it takes. |