From 5358b5aa6823c0ef4b0b5b7285e71e23d1f31f94 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 15 Nov 2021 17:08:45 +0100 Subject: [PATCH] correct the path for the restic excludes --- templates/backup-to-restic.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/backup-to-restic.j2 b/templates/backup-to-restic.j2 index ec97746..7e15595 100644 --- a/templates/backup-to-restic.j2 +++ b/templates/backup-to-restic.j2 @@ -5,14 +5,14 @@ export RESTIC_PASSWORD={{ restic_password }} if [ $(hostname) == management ] then - restic backup /home/andreas --exclude-file=/home/andreas/.config/restic/excludes.txt + restic backup /home/andreas --exclude-file=/etc/restic/excludes.txt fi if [ $(hostname) == {{ ansible_facts['hostname'] }} ] then cd {{ docker_project_path }} sudo docker-compose pause - sudo -E restic backup /home/ansible --exclude-file=/home/ansible/.config/restic/excludes.txt + sudo -E restic backup /home/ansible --exclude-file=/etc/restic/excludes.txt fi if [[ -x /usr/local/bin/docker-compose || -x /usr/bin/docker-compose ]]