From 1a9bed21e2b543908dffb705d4a56d0a6b64c4fa Mon Sep 17 00:00:00 2001 From: Ian Paterson Date: Fri, 9 May 2025 17:33:34 -0400 Subject: [PATCH] fix: missing KeepLastN in scheduled retention policy (#778) --- internal/protoutil/conversion.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/protoutil/conversion.go b/internal/protoutil/conversion.go index 3d81d60e..ce0e70e6 100644 --- a/internal/protoutil/conversion.go +++ b/internal/protoutil/conversion.go @@ -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{