[Dirvish] dirvish-expire usage Q

Paul Slootman paul at debian.org
Thu Aug 10 09:37:26 UTC 2006


On Wed 09 Aug 2006, Petcher, Daniel wrote:
> 
> I've got two golden ancient backups that I wish to retain forever.
>  
> Right now, I launch my weekly backup manually after having cleared space on
> my dirvish vault with a
> rm -r /backup/vault/%y%m%d/
> to get rid of the oldest non-golden backup snapshot. I don't want to put
> these ancient backups outside the dirvish vault, because there are several
> GB of data that never change.
> 
> It just occurred to me that my index file is growing every week while I'm
> doing nothing to flush its garbage.

What index file exactly do you mean? The index for each image is kept
inside the image directory, so if you remove the image, you
automatically remove the index for that image...
Or do you mean the history file? That's one line per image, nothing
exciting.

> Is there a way with dirvish-expire to clean-out old snapshots while
> retaining the certain golden snapshots I want?

Edit the summary file, there's an "Expire:" line that has the date after
which the image should expire. Change the year to 2999 and you probably
won't be around to see it expire :-)


Paul Slootman


More information about the Dirvish mailing list