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 ) answered 27 Apr '10, 23:02 Luis 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. answered 29 Apr '10, 00:34 LiquidPaper |
Try this script from Sourceforge: AutoMySQLBakcup, it works great, is easy to setup and maintain. answered 25 Aug '10, 08:45 EricTRA |