weakly dates

Billy Newsom <[email protected]> Mon, 21 Mar 2005 17:08:30 -0600
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
Also, doesn't it make more sense to do weeklies on some other day than 
the first, when the monthly runs?  That's redundant.  And in February, 
you will run a weekly on the 28th, then on March 1st the following day 
you will run a monthly, a weekly, and a daily.

Probably what would be more appropriate in your example cron file is 
something like:

00 2 4,11,18,25 * * /usr/local/sbin/hdup -q -q weekly hostname
(three days after the monthly, and then every week) or
00 2 * * 0 /usr/local/sbin/hdup -q -q weekly hostname
(every Sunday)

And we might as well forget the daily on the first:
00 2 2-31 * * /usr/local/sbin/hdup -q -q daily hostname

And if we are really fancy, the cron file might be coaxed into using 
special symbols.  This should work:
00 2 *%7 * * /usr/local/sbin/hdup -q -q daily hostname
(that's every day not divisible by seven.)

There's my two cents!

Billy