mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-09-20 06:55:34 +00:00
fix: missing KeepLastN in scheduled retention policy (#778)
This commit is contained in:
@@ -112,6 +112,7 @@ func RetentionPolicyFromProto(p *v1.RetentionPolicy) *restic.RetentionPolicy {
|
||||
KeepWeekly: int(p.PolicyTimeBucketed.Weekly),
|
||||
KeepMonthly: int(p.PolicyTimeBucketed.Monthly),
|
||||
KeepYearly: int(p.PolicyTimeBucketed.Yearly),
|
||||
KeepLastN: int(p.PolicyTimeBucketed.KeepLastN),
|
||||
}
|
||||
case *v1.RetentionPolicy_PolicyKeepLastN:
|
||||
return &restic.RetentionPolicy{
|
||||
|
||||
Reference in New Issue
Block a user