bundles/backup-server: fix bug in retaining
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2022-03-13 09:24:45 +01:00
parent 008940d75f
commit 8397739634
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -87,7 +87,8 @@ for bucket in INTERVALS.keys():
syslog(f'something is wrong, there are no snapshots for {bucket}')
continue
keep_age = INTERVALS[bucket] * client_settings[bucket]
# see comment in zfs-auto-snapshot about doing +1 here
keep_age = INTERVALS[bucket] * (client_settings[bucket]+1)
# oldest snapshots come first
for ts in snapshots[:-int(client_settings[bucket])]: