mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9928f908a0 | ||
|
|
d091f3030b |
@@ -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
|
||||
|
||||
@@ -20,9 +20,10 @@ restic init --repo "$RESTIC_REPOSITORY" || true
|
||||
|
||||
echo "Running Restic backup..."
|
||||
restic backup \
|
||||
-r "$RESTIC_REPOSITORY" \
|
||||
"$SOURCE_DIR" \
|
||||
--verbose \
|
||||
--tag "daily" \
|
||||
--tag "daily"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Restic backup completed successfully!"
|
||||
|
||||
Reference in New Issue
Block a user