From eff183dc63d470e969f7a64e8ff68c00bdf87d54 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sun, 26 Jul 2026 04:37:33 +0200 Subject: Decouple restore and backup directories to avoid permission issues Restore now uses /var/cache/git-restore (root-owned), backup keeps /var/cache/git-backup (backup-owned) Co-Authored-By: Claude.ai --- roles/backup/templates/restore.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/backup/templates') diff --git a/roles/backup/templates/restore.sh.j2 b/roles/backup/templates/restore.sh.j2 index 35428693..44334138 100644 --- a/roles/backup/templates/restore.sh.j2 +++ b/roles/backup/templates/restore.sh.j2 @@ -20,7 +20,7 @@ export AWS_SECRET_ACCESS_KEY="${BACKUP_SECRET_ACCESS_KEY}" # --target /, as a guardrail against unbounded deletion, so scope it to # exactly the paths this job backs up. restic restore "{{ backup_restore_id }}" \ - --cache-dir "/var/cache/{{ backup_name }}-backup" \ + --cache-dir "/var/cache/{{ backup_name }}-restore" \ --target "{{ restore_target }}" \ --delete \ --include {{ backup_paths | map('quote') | join(' --include ') }} -- cgit v1.2.3