[CentOS] cron job not running

Bowie Bailey Bowie_Bailey at BUC.com
Tue Mar 6 12:56:16 EST 2012


On 3/4/2012 10:25 PM, Tim Dunphy wrote:
> hello list,
>
>  I am attempting to backup a centos 5.4 (x86_64) server running mysql
> with a cron job. Here's how the cron job looks:
>
>  [root at cloud:/home/bluethundr/backupdb] #crontab -l
> * 3 * * * /usr/bin/mysqldump jfwiki >
> /home/bluethundr/backupdb/wiki-$(date +%Y%m%d).sql

You do realize this is going to run 60 times per day, right?  (every
minute from 3:00 - 3:59)

I think you wanted this:

0 3 * * * /usr/bin/mysqldump jfwiki >
/home/bluethundr/backupdb/wiki-$(date +%Y%m%d).sql

-- 
Bowie


More information about the CentOS mailing list