[Dirvish] expire rule doesn't work as desired

Paul Slootman paul at debian.org
Wed Aug 12 12:53:59 UTC 2015


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



More information about the Dirvish mailing list