From 6bf5a5549fff156e5009b8ea85912439fb49d6cf Mon Sep 17 00:00:00 2001 From: Morre Date: Mon, 12 Jul 2021 12:10:18 +0200 Subject: [PATCH] fix: group restic forget by path restic forget groups by hostname and path by default, which leads to it never forgetting anything as every snapshot has a different hostname (randomly generated pod name) --- charts/backup/Chart.yaml | 2 +- charts/backup/templates/cronjob-cleanup.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/backup/Chart.yaml b/charts/backup/Chart.yaml index e39f8f22..d624af39 100644 --- a/charts/backup/Chart.yaml +++ b/charts/backup/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: backup description: Chart to back up PVCs with restic and regularly clean up the snapshots. type: application -version: 1.0.0 +version: 1.0.1 diff --git a/charts/backup/templates/cronjob-cleanup.yaml b/charts/backup/templates/cronjob-cleanup.yaml index d40b1b33..47700881 100644 --- a/charts/backup/templates/cronjob-cleanup.yaml +++ b/charts/backup/templates/cronjob-cleanup.yaml @@ -31,6 +31,7 @@ spec: {{- else }} - --no-cache - --verbose + - --group-by paths - --repo - {{ .Values.repo }} - forget