From 3efcc957d64c60ddfc00e53f19a8487e19498452 Mon Sep 17 00:00:00 2001
From: Clark Boylan <clark.boylan@gmail.com>
Date: Thu, 7 May 2020 08:44:58 -0700
Subject: [PATCH] Update bup excludes for zuul-scheduler

On our zuul-scheduler host the /root/.bup dir is extremely large. On
closer examination this appears to be due to large file indexes. Looking
at the host we've noticed that we are backing up the status.json backups
as well as job runtime files which can and do change frequently which
could lead to very large file indexes.

We don't actually need to back these up permanently so exclude them from
bup's list. the /var/lib/zuul/backup dir contains status.json backups
which are really only useful in the immediate time frame and the times
db is something we can live without if we lose it (we'll just build a
new one).

Change-Id: Id3029eec3a6478c496712876b9ec753029313efa
---
 playbooks/roles/backup/files/bup-excludes | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/playbooks/roles/backup/files/bup-excludes b/playbooks/roles/backup/files/bup-excludes
index e21bcd3772..84aabab33f 100644
--- a/playbooks/roles/backup/files/bup-excludes
+++ b/playbooks/roles/backup/files/bup-excludes
@@ -19,5 +19,7 @@
 /var/lib/puppet/reports/*
 /var/lib/postgresql/*
 /var/lib/lxcfs/*
+/var/lib/zuul/backup/*
+/var/lib/zuul/times/*
 /opt/system-config/*
 /afs/*