# Functions
NewStrategyGetter creates something capable of returning a Strategy.
# Constants
KeepAllStrategy retention policy: The following table gives an overview of the behavior within this strategy:
| retained backups | time period | |------------------|-------------| | ALL | ∞ |
The maximum of saved backups is ∞.
KeepLast7DaysOldestOf1Month1Quarter1HalfYear1YearStrategy retention policy:
The following table gives an overview of the behaviour within this strategy:
| retained backups | time period | | ALL | 0 - 7 days | | 1 | 8 - 30 days | | 1 | 31 - 90 days | | 1 | 91 - 180 days | | 1 | 181 - 360 days |
The maximum of saved backups is 11 (without consideration of manual backups) Between interval borders the oldest backup is moving.
KeepLastSevenDaysStrategy retention policy: The following table gives an overview of the behavior within this strategy:
| retained backups | time period | |------------------|-------------| | ALL | 1-7 days |
The maximum of saved backups is 7 (without consideration of manual backups).
RemoveAllButKeepLatestStrategy retention policy: The following table gives an overview of the behavior within this strategy:
| retained backups | time period | |------------------|-------------| | 1 | ∞ |
The maximum of saved backups is 1.
# Structs
StrategyGetter is capable of returning a Strategy identified by its name.
# Interfaces
Strategy filters a set over all backups into sets of backups that should be removed by the RetentionManager as well as sets of backups that should be kept.
# Type aliases
RemovedBackups hold backups that are removed from the backup repository.
RetainedBackups hold backups that continue to stay at the backup repository and are not removed.
StrategyId is an enum identifying a retention strategy.