Skip to content

RetentionRule

Defined in: core.ts:138

One retention rule set. When both fields are set, an item is kept if either rule keeps it (union of keeps — the same semantics as backup tools): pruned only when it is outside the keepLast most recent AND older than maxAge.

Property Type Description Defined in
keepLast? number Keep at most the N most recent items. core.ts:140
maxAge? FlagDuration Keep items newer than this age (relative to prune time). core.ts:142