[Dirvish] Number images x Disk Usage

Jon Radel jon at radel.com
Wed May 2 19:41:22 PDT 2007


Joel Franco wrote:

> I could suggest, IMHO, to put a additional parameter like
> "partition-limit-size: 80%" that will expire the older images (but newer
> than the expire politics) to free the necessary space to make the new
> fresh image.

Two initial reactions:

1)  Nice idea; I could certainly use such a thing.

2)  I don't think that you need to make any changes to dirvish at all.
Writing a separate expiration script which can parse that line out of a
config file and then deletes backups as necessary should be quite feasible.

The most complicated part I can think of (this is all off the top of my
head, you understand; it bears further thought) is coming up with an
algorithm for picking which backups to delete that makes sense.  Simply
getting rid of the oldest wouldn't keep me happy, as I like to keep a
monthly backup around for quite some time, and would be much happier to
see a 12-day old daily backup get sacrificed than a 3-month old monthly
backup.  My first thought would be calculate, for each backup, the
percentage of the duration between creation and expiration which has
elapsed and delete backups for which that value is the highest.

--Jon Radel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2890 bytes
Desc: S/MIME Cryptographic Signature
Url : http://www.dirvish.org/pipermail/dirvish/attachments/20070502/2e26e818/smime.bin


More information about the Dirvish mailing list