[BlueOnyx:10744] Re: Moving raqbackup.sh to weekly
Chris Gebhardt - VIRTBIZ Internet
cobaltfacts at virtbiz.com
Wed Jun 6 16:44:40 -05 2012
Thanks Dudi.
Dudi Goldenberg wrote:
> Hi Chris,
>
>> This line was also added into crontab:
>> 01 01 * * sat root run-parts /etc/cron.weekly
>
> cron.weekly should have been present in /etc/crontab by
> default, there should be no reason to add it.
> This is mine, it's an old BQ but still applies:
>
> 01 * * * * root run-parts /etc/cron.hourly
> 02 4 * * * root run-parts /etc/cron.daily
> 22 4 * * 0 root run-parts /etc/cron.weekly
> 42 4 1 * * root run-parts /etc/cron.monthly
> 04,34 * * * * root run-parts /etc/cron.half-hourly
> 03,18,33,48 * * * * root run-parts /etc/cron.quarter-hourly
> 05 0,6,12,18 * * * root run-parts /etc/cron.quarter-daily
Well this may be a bit different. This is the contents of /etc/crontab
from 5108R:
=================================================
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
TMPDIR=/home/.tmp
HOME=/
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR
sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
01 2 * * * * root run-parts /etc/cron.daily
04,34 * * * * root run-parts /etc/cron.half-hourly
03,18,33,48 * * * * root run-parts /etc/cron.quarter-hourly
05 0,6,12,18 * * * root run-parts /etc/cron.quarter-daily
=================================================
As you see, nothing referencing weekly. That is why we added this line
to the end:
01 01 * * 7 root run-parts /etc/cron.weekly
> Besides that, moving the script out of cron.daily into cron.weekly plus a crond restart should have done the trick.
OK... well, it didn't. On 5 boxes. There was a root crontab that ran a
script at reboot. I pulled that out and restarted crond. We'll see if
that does it.
--
Chris Gebhardt
VIRTBIZ Internet Services
Access, Web Hosting, Colocation, Dedicated
www.virtbiz.com | toll-free (866) 4 VIRTBIZ
More information about the Blueonyx
mailing list