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!"