[Dirvish] Backup strategy for a home computer

Eric Mountain em-dirvish-1 at nerim.net
Mon Aug 28 21:05:08 UTC 2006


Hi,

On Monday 28 August 2006 14:11, Johannes Kastl spake thus:
> > expire-rule:
> > #MIN    HR      DOM     MON             DOW     STRFTIME_FMT
> > *       *       *       *               1       +2 weeks
> > *       *       *       *               2       +2 weeks

I think what you need is leading whitespace before the 1st character on each 
expire-rule line (apart from the comment-line).

e.g.
expire-rule:
#MIN    HR      DOM     MON             DOW     STRFTIME_FMT
  *       *       *       *               1       +2 weeks
  *       *       *       *               2       +2 weeks

I know this is somewhat non-obvious, but here's what the dirvish.conf man page 
says:

<quote>
Options expecting list must be specified in a
       multi-line format as shown here where the lines specifying values are 
indented by any kind of whites‐
       pace even if only one value is being specified.

            option:
                 value1
                 value2
                 .
                 .
                 .
                 valueN

       Each  value  must  be  provided  on  its own line.  Any leading and 
trailing whitespace is discarded.
</quote>

> And, how could I keep one backup per month for 1 year, if it is not
> sure that the machine is always running on the first day of the month?

No good answer off the top of my head.  I guess you could basically check on 
boot if you missed the 1st of the month and generate a master.conf that takes 
this fact into account, but it's a somewhat cumbersome solution...  Search 
the list - I think this question has come up before.

Cheers,
Eric
-- 
Eric Mountain


More information about the Dirvish mailing list