enzingerm/snapborg

Snapborg/Snapper retention algorithms do not match which results in unnecessary snapshot backups

Closed this issue · 1 comments

Snapper keeps the first snapshot in a time period, e.g. the snapshot created at 00:00 for TIMELINE_LIMIT_DAILY whereas snapborg backups the latest snapshot in a time period. This results in another (unnecessary) backup when the timeline cleanup routine deletes the snapshot transferred to borg and keeps another one.

5b879d5 changes the algorithm calculating those snapshots which should be retained to match the one used by snapper. This means, that the first snapshot within a time period is kept and not the last one.