]> git.proxmox.com Git - pve-zsync.git/commit
remove all old snapshots belonging to a job
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 11 May 2021 12:59:52 +0000 (14:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 25 May 2021 05:18:50 +0000 (07:18 +0200)
commit42b8fc946ff66c1cb739954a52ae4aa7fd8395d2
tree76a7af3611d31e12ea81496e99f7d68f855c8aeb
parent56ce1be3c7334a5bb76dde98074685da5d7480f4
remove all old snapshots belonging to a job

Changing maxsnap to something smaller can lead to left-over snaphsots otherwise,
as previously at most one snapshot would be removed, even if there are multiple
old snapshots according to the new setting.

Hopefully nobody relied on the fact that pve-zsync didn't clean up after itself
in such cases...

Negative values and 0 for 'maxsnap' should still be interpreted as infinity to
match the previous behavior.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
pve-zsync