Issue with mysql backup in cron

Posted by Aaron on Stack Overflow See other posts from Stack Overflow or by Aaron
Published on 2010-12-30T18:29:48Z Indexed on 2010/12/30 18:54 UTC
Read the original article Hit count: 237

Filed under:
|
|

I'm just trying to perform a mysqldump and have it scheduled. I'm using RHEL 5 and have added it to the crontab as shown below:

22 13 * * * root mysqldump --user=root --password=12345 mysqldb > /var/backups/mysqldbdate +%d%m.sql

The .sql file never ended up in the backups folder. I even attempted to run this command line and it worked fine which tells me its something to do with the cron. Furthermore, I added a simple comand like "ls" and the output to the same directory and it worked fine.

Any ideas?

Thanks, Aaron

© Stack Overflow or respective owner

Related posts about cron

Related posts about mysqldump