Re: weakly dates

Miek Gieben <[email protected]> Tue, 22 Mar 2005 15:01:09 +0100
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
[On 22 Mar, @ 00:08, Billy wrote in "[hdup-user] weakly dates ..."]
> 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.

Well, I don't know :) Last time I looked at this was 2 years ago.
Personally I don't care about the redundant backups that are created
on the first. (I like to check the file sizes to see if the
incremental stuff is still working)

> 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.)

nice! Didn't know cron could do that,

> There's my two cents!

I can always include these cron's as examples...

--
grtz,
  - Miek

http://www.miek.nl                   http://www.nlnetlabs.nl