[Dirvish] expire rule doesn't work as desired

Norman collector at ftwr.de
Sat Aug 22 14:23:09 UTC 2015


Hi Paul,
thanks for your help! The other notation is really better. I used your 
rules, but sadly the don't work right.
I changed the backup interval to every 2 hours and just got these 
backupsets:

2015-08-22-09
2015-08-22-11
2015-08-22-13

It seems that only the default expire rule applies. This config is now 
running for a couple of days. Maybe the problem is that i use %H in 
image format? Any ideas?
Also, im not sure about your md and wd settings. When i want to keep the 
midnight backup from monday for 4 weeks, shouldn't the entry be 
different? Like
wd {mon} +4 weeks
And the monthly be:
md (1} + 2 months

Now i changed the rules to
expire-default: +6 hours
expire-rule:
hr { 00,01 }    +7 days
md { 1 }        +2 months
wd { mon }      +4 weeks


Thanks in advance
Norman


Am 12.08.2015 14:53, schrieb Paul Slootman:
> On Fri 07 Aug 2015, Norman wrote:
> 
>> i've tried several times to change the expire rules to my needs. But
>> unfortunately none of the approches worked and now i'm total confused. 
>> I
>> highly appreciate any hints. So, here's my setup:
>> 
>> master.conf:
>> expire-rule:
>> #       MIN HR    DOM MON       DOW  STRFTIME_FMT
>>          *   *     *   *         *   +6 hours
> 
> Note the manpage states:
> 
>     In most cases it is better to use a expire-default: value than to
>     define a rule that matches all possible times.
> 
> So I'd add a line:
> 
> expire-default: +6 hours
> 
> and remove the first expire-rule line.
> 
>>          *   00    *   *         *   +7 days
>>          *   00    *   *         1   +4 weeks
>>          *   00    1   *         *   +2 months
> 
> I'm not sure how these are evaluated, perhaps using a single-digit 0
> might work better.
> 
> Perhaps even better: use the alternative notation:
> 
>     hr { 0 }		+7 days
>     md { 1 }		+4 weeks
>     wd { mon }		+2 months
> 
> This is easier to read as well.
> 
> I also see you have images with odd hours, so perhaps another image
> which is being made before this one takes more than an hour, in which
> case the "hr { 0 }" won't match, make it "hr { 0,1 }".
> 
> You can always check the summary file for the "Expires:" line, so that
> you don't have to wait a month to see if it's doing things right... You
> can also simply edit that line if necessary.
> 
> Paul
> _______________________________________________
> Dirvish mailing list
> Dirvish at dirvish.org
> http://www.dirvish.org/mailman/listinfo/dirvish


More information about the Dirvish mailing list