You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Retention policy only prunes the current serverName; archives of earlier lineages are never cleaned up #1253
Problem
The recommended recovery pattern restores from the old serverName and archives to a new one, because the plugin refuses to archive into a non-empty folder. After each recovery, the ObjectStore therefore holds several lineages:
The retention run (barman-cloud-backup-delete --retention-policy "RECOVERY WINDOW OF 7 DAYS" s3://bucket/ <serverName>) only covers the cluster's current serverName. The earlier lineages are never pruned and grow without bound unless someone deletes them by hand. ObjectStore.status lists all lineages with their recovery windows, so the plugin already knows about them.
Expected
At least, retention.md should state that the policy is applied per serverName and covers only the lineage a cluster currently archives to, so that operators plan cleanup of old lineages.
Better, an opt-in on the ObjectStore, for example:
spec:
retentionPolicy: "7d"pruneInactiveServerNames: true # apply the window to lineages no cluster archives to anymore
A lineage would be deleted once its newest WAL/backup is older than the window, and never while a cluster still references it.
Related:#827 (docs on serverName separation), #1163, #405.
Activity
docs: state that retention policies apply per serverName