[CentOS] run script on cron job only run on first Saturdat every month???
Tony Molloy
tony.molloy at ul.ie
Wed Jul 31 15:00:24 UTC 2013
On Tuesday 30 July 2013 22:58:34 John R Pierce wrote:
> On 7/30/2013 2:32 PM, Keith Keller wrote:
> > 15 04 1-7 * 6 /home/app/oracle/backup/monthlybk.sh
>
> maybe...
>
> 15 04 * * 6 test $(date +"%d") -le 07 &&
> /home/app/oracle/backup/monthlybk.sh
>
> (untested)
Run an incremental backup every day of the month except sundays
03 03 1-31 * * test `date +\%a` != Sun && /usr/local/bin/backup-rsch-
inc
Run a full backup on the first sunday of the month
07 03 1-7 * * test `date +\%a` = Sun && /usr/local/bin/backup-rsch-
full
Tony
--
Linux mufc.tonyshome.ie 2.6.32-358.14.1.el6.x86_64 #1 SMP Tue Jul 16
23:51:20 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
More information about the CentOS
mailing list