From 33381b1a0397c327cb2580e65ccb45f922a86a4d Mon Sep 17 00:00:00 2001 From: Jelle van der Waa <jelle@archlinux.org> Date: Sat, 1 Feb 2020 19:04:03 +0100 Subject: [PATCH] borg-client: use the correct base directory to exclude files --- roles/borg-client/templates/borg-backup.sh.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/borg-client/templates/borg-backup.sh.j2 b/roles/borg-client/templates/borg-backup.sh.j2 index 8ea33551f..008a91811 100644 --- a/roles/borg-client/templates/borg-backup.sh.j2 +++ b/roles/borg-client/templates/borg-backup.sh.j2 @@ -56,10 +56,10 @@ borg create -v --stats -C lz4 \ -e /var/cache \ -e /var/lib/archbuild \ -e /var/lib/archbuilddest \ - -e "$snapshotdir/var/cache" \ - -e "$snapshotdir/var/lib/archbuild" \ - -e "$snapshotdir/var/lib/archbuilddest" \ - -e "$snapshotdir/srv/archive" \ + -e "$backup_mountdir/var/cache" \ + -e "$backup_mountdir/var/lib/archbuild" \ + -e "$backup_mountdir/var/lib/archbuilddest" \ + -e "$backup_mountdir/srv/archive" \ {{ backup_host }}:{{ backup_dir }}::$(date "+%Y%m%d-%H%M%S") "$backup_mountdir" borg prune -v {{ backup_host }}:{{ backup_dir }} --keep-daily=7 --keep-weekly=4 --keep-monthly=6 -- GitLab