This commit is contained in:
Morten Olsen
2025-09-06 00:16:00 +02:00
parent d091f3030b
commit 9928f908a0
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ spec:
- name: source - name: source
mountPath: "/mnt/source" mountPath: "/mnt/source"
- name: target - name: target
mountPath: "/mnt/backups" mountPath: "/mnt/backup"
subPath: "{{ $release.Name }}-{{ $key }}" subPath: "{{ $release.Name }}-{{ $key }}"
volumes: volumes:
- name: source - name: source

View File

@@ -20,10 +20,10 @@ restic init --repo "$RESTIC_REPOSITORY" || true
echo "Running Restic backup..." echo "Running Restic backup..."
restic backup \ restic backup \
-r "$RESTIC_REPOSITORY" -r "$RESTIC_REPOSITORY" \
"$SOURCE_DIR" \ "$SOURCE_DIR" \
--verbose \ --verbose \
--tag "daily" \ --tag "daily"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "Restic backup completed successfully!" echo "Restic backup completed successfully!"