Package: chiark-scripts
Version: 4.4.2

chiark:~/junk> cat /var/lib/chiark-backup/on-davenant
2017-03-16T01:44+0000
2017-05-04T01:44+0100
2017-05-05T01:44+0100
2017-05-06T01:44+0100
2017-05-07T01:44+0100
2017-05-08T01:44+0100
2017-05-09T01:44+0100
2017-05-10T01:44+0100
2017-05-11T01:44+0100
2017-05-12T01:44+0100
2017-05-13T01:44+0100
2017-05-14T01:44+0100
2017-05-15T01:44+0100
2017-05-16T01:44+0100
2017-05-17T01:44+0100
2017-05-18T01:44+0100
latest
chiark:~/junk>

This is the result of

  expire-iso8601 -r -u86400 -s10000 14x1 4x7

The problem is that the oldest backup (kept for 4x7) never gets
replaced because the next-oldest (kept for 14x1) is never old enough.

I think the fix is to count each spec twice, once with a minimum
interval (choosing the newest) and once with a maximum (choosing the
oldest).

Ian.

-- 
Ian Jackson <ijack...@chiark.greenend.org.uk>   These opinions are my own.

If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.

Reply via email to