From 44eb165966490d96a62ac6a25facf0837e4a8fb4 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Thu, 29 Sep 2016 09:47:16 +0200
Subject: [PATCH] borg-client: Exclude archbuild dirs from backup

---
 roles/borg-client/templates/borg-backup.sh.j2 | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/roles/borg-client/templates/borg-backup.sh.j2 b/roles/borg-client/templates/borg-backup.sh.j2
index b90fa3e9a..9a0d5dfbe 100644
--- a/roles/borg-client/templates/borg-backup.sh.j2
+++ b/roles/borg-client/templates/borg-backup.sh.j2
@@ -5,7 +5,14 @@ set -e
 # In case there is postgresql running, dump all of it somewhere.
 systemctl status postgresql && /usr/local/bin/backup-postgres.sh || true
 
-borg create -v --stats -C lz4 -e /proc \
-    -e /sys -e /dev -e /run -e /tmp -e /var/cache \
+borg create -v --stats -C lz4 \
+    -e /proc \
+    -e /sys \
+    -e /dev \
+    -e /run \
+    -e /tmp \
+    -e /var/cache \
+    -e /var/lib/archbuild \
+    -e /var/lib/archbuilddest \
     {{ backup_host }}:{{ backup_dir }}::$(date -I) /
 borg prune -v {{ backup_host }}:{{ backup_dir }} --keep-daily=7 --keep-weekly=4 --keep-monthly=6
-- 
GitLab