fix: missing KeepLastN in scheduled retention policy (#778)

This commit is contained in:
Ian Paterson
2025-05-09 14:33:34 -07:00
committed by GitHub
parent 20dba34ce7
commit 8501358f1d
+1
View File
@@ -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{