Note. Test before putting to use.
With this script you don't set retention_policy
in Barman's config, but run barman-clean-backups.sh
periodically.
This script keeps files needed to restore to any point in time within the range of last x backups (--n-keep
),
plus y points in time before that (--n-keep-standalone
).