[Dirvish] expire rules

Terry terry at firstkmh.co.uk
Thu Jul 24 08:03:34 UTC 2014


Hi  could some one give me a few pointers on why this rule is not doing 
as expected and there is no expire rules in master.conf

more dirvish/default.conf
client: root at 212.200.23.25
index: text
tree: /usr/home/samba-shares/quickbooks
xdev: 0

exclude:
         .RecycleBin
         .zfs



# keep every friday for 60 days
# every 1st month 6 months

expire-rule:
wday { friday } +60 days
mday { 1 } +6 months

expire-default: +30 day


# pwd
/usr/server-shares/backups/dirvish/bank0/quickbooks
# dirvish-expire --vault quickbooks --dry-run
Expiring images as of 2014-07-24 08:52:10
Restricted to vault quickbooks

VAULT:BRANCH    IMAGE           CREATED           EXPIRED
quickbooks:default 20140703210950  2014-07-03 21:10  +15 days == 
2014-07-18 21:09
quickbooks:default 20140704211948  2014-07-04 21:19  +15 days == 
2014-07-19 21:19
quickbooks:default 20140705212635  2014-07-05 21:28  +15 days == 
2014-07-20 21:26
quickbooks:default 20140707220244  2014-07-07 22:02  +15 days == 
2014-07-22 22:02
quickbooks:default 20140708221018  2014-07-08 22:10  +15 days == 
2014-07-23 22:10
quickbooks:default 20140712195720  2014-07-12 19:57  +4 days == 
2014-07-16 19:57
quickbooks:default 20140713195838  2014-07-13 19:58  +4 days == 
2014-07-17 19:58
quickbooks:default 20140714202213  2014-07-14 20:22  +4 days == 
2014-07-18 20:22
quickbooks:default 20140715204812  2014-07-15 20:48  +4 days == 
2014-07-19 20:48
quickbooks:default 20140716205211  2014-07-16 20:52  +4 days == 
2014-07-20 20:52
quickbooks:default 20140717202842  2014-07-17 20:28  +4 days == 
2014-07-21 20:28
quickbooks:default 20140719204436  2014-07-19 20:44  +4 days == 
2014-07-23 20:44



how is it getting 15 and 4 days ?
I modified the rule I found here http://wiki.edseek.com/howto:dirvish. I 
assume I am not understanding some thing some where
Thank you

-- 
------------------------------------
Terry



More information about the Dirvish mailing list