]> git.proxmox.com Git - proxmox-backup.git/commit
prune sim: correctly keep track of already included backups
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 14 Dec 2020 15:04:53 +0000 (15:04 +0000)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 15 Dec 2020 13:03:18 +0000 (14:03 +0100)
commit39478aa52cd85b3d343b1a4a8374dc06bc52cfd1
tree0f6041e1cfeb01c0aa55285971c1dbb828da4ab8
parent6a99b930c4669b9c7a584518200e02714e0fde5f
prune sim: correctly keep track of already included backups

This needs to happen in a separate loop, because some time intervals are not
subsets of others, i.e. weeks and months. Previously, with a daily backup
schedule, having:
* a backup on Sun, 06 Dec 2020 kept by keep-daily
* a backup on Sun, 29 Nov 2020 kept by keep-weekly
would lead to the backup on Mon, 30 Nov 2020 to be selected for keep-monthly,
because the iteration did not yet reach the backup on Sun, 29 Nov 2020 that
would mark November as being covered.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
docs/prune-simulator/prune-simulator.js