bundles/backup-server: fix bug in retaining
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
008940d75f
commit
8397739634
1 changed files with 2 additions and 1 deletions
|
@ -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])]:
|
||||
|
|
Loading…
Reference in a new issue