fix: missing KeepLastN in scheduled retention policy (#778)
Build Snapshot Release / build (push) Has been cancelled
Release Please / release-please (push) Has been cancelled
Test / test-nix (push) Has been cancelled
Test / test-win (push) Has been cancelled

This commit is contained in:
Ian Paterson
2025-05-09 14:33:34 -07:00
committed by GitHub
parent 58721f9003
commit 1a9bed21e2
+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{