Skip to content

Commit

Permalink
Do not apply kopia retention policy on snap create (#2442)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavannd1 committed Oct 27, 2023
1 parent 1003ad9 commit 878a4c7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/kopia/snapshot/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ func SnapshotSource(
return "", 0, errors.Wrap(err, "Failed to save kopia manifest")
}

_, err = policy.ApplyRetentionPolicy(ctx, rep, sourceInfo, true)
if err != nil {
return "", 0, errors.Wrap(err, "Failed to apply kopia retention policy")
}
// TODO: https://github.com/kanisterio/kanister/issues/2441
// _, err = policy.ApplyRetentionPolicy(ctx, rep, sourceInfo, true)
// if err != nil {
// return "", 0, errors.Wrap(err, "Failed to apply kopia retention policy")
// }

if err = policy.SetManual(ctx, rep, sourceInfo); err != nil {
return "", 0, errors.Wrap(err, "Failed to set manual field in kopia scheduling policy for source")
Expand Down

0 comments on commit 878a4c7

Please sign in to comment.