From 9928f908a079bd7edc70e9bcc35992e3f68ad3bb Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Sat, 6 Sep 2025 00:16:00 +0200 Subject: [PATCH] fix --- charts/backup/templates/cron-job-backup.yaml | 2 +- images/backup/backup.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/backup/templates/cron-job-backup.yaml b/charts/backup/templates/cron-job-backup.yaml index 1d56467..7125acf 100644 --- a/charts/backup/templates/cron-job-backup.yaml +++ b/charts/backup/templates/cron-job-backup.yaml @@ -31,7 +31,7 @@ spec: - name: source mountPath: "/mnt/source" - name: target - mountPath: "/mnt/backups" + mountPath: "/mnt/backup" subPath: "{{ $release.Name }}-{{ $key }}" volumes: - name: source diff --git a/images/backup/backup.sh b/images/backup/backup.sh index 388a042..a7118b9 100644 --- a/images/backup/backup.sh +++ b/images/backup/backup.sh @@ -20,10 +20,10 @@ restic init --repo "$RESTIC_REPOSITORY" || true echo "Running Restic backup..." restic backup \ - -r "$RESTIC_REPOSITORY" + -r "$RESTIC_REPOSITORY" \ "$SOURCE_DIR" \ --verbose \ - --tag "daily" \ + --tag "daily" if [ $? -eq 0 ]; then echo "Restic backup completed successfully!"