Lance Levsen wrote:
> I can't seem to figure out what I'm doing wrong, so I hope the list can 
> help. I want daily snapshots to expire after 7 days except for Tuesday's 
> which I want to expire after 1 month. System is Debian stable.
> 
> /etc/dirvish/master.conf:
> expire-default: 7 days
> 
> /media/raid/backups/robin/robin-home/dirvish/default.conf
> client: root@robin
> tree: /home/
> expire-rule:
> #MIN  HR    DOM   MON         DOW   EXPIRE
> *      *       *       *     *      +7 days
> *      *       *       *     2   +1 months
> 
> Given those confs, when I run --dry-run I get (With today being Tuesday):
> 
> #$> dirvish --dry-run --vault robin-home | grep -i expire
> Expire: 7 days == 2012-04-24 12:43:39
> expire-default: 7 days
> 
> According to my understanding of the docs, the Expire should be 1 month 
> from now, not 7 days. Am I making a stupid mistake somewhere?

>From the docs:
"Most notable is that the days of the week are numbered 1-7 for sun-sat"

Tuesday is day 3, not day 2

Also note the bit just above where it says:
"In most cases it is better to use a expire-default: value than to
define a rule that matches all possible times."
_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to