Re: cron job not running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[CentOS]     [CentOS Announce]     [CentOS Docs]     [CentOS Virtualization]     [Linux Media]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Xfree86]     [Linux USB]     [Project Hail Cloud Computing]

Powered by Linux Add to Google