Skip to content

Commit 2ca9bd2

Browse files
committed
Retention policies for backups
1 parent 7c2358c commit 2ca9bd2

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

charts/cnpg-mastodon-deploy/templates/object-store.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ spec:
2121
key: ACCESS_SECRET_KEY
2222
wal:
2323
compression: gzip
24+
retentionPolicy: {{ .Values.backup.retentionPolicy }}
2425
{{- end }}

charts/cnpg-mastodon-deploy/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ backup:
4646
# ACCESS_SESSION_TOKEN: xxxxxxx # if required
4747
s3Credentials: s3-credentials
4848

49+
# How long to keep backups for.
50+
retentionPolicy: "14d"
51+
4952
# Additional labels to add to all resources
5053
labels: {}
5154

0 commit comments

Comments
 (0)