From 6bcfe057427a06924a5dc5c040c171ccc576e6a8 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 11 Nov 2020 13:09:21 +1100 Subject: [PATCH] review: trim backups This should help reduce the bulk of the review site backups * launchpadlib cache has ~650,000 files which we don't need to track * review_site/tmp has ~50,000 files * review_site/cache is about 9gb * review_site/index is optional to backup, but a) it's very unlikley to be useful in a full restore situation; we'd have to re-create them and b) things seem to come and go under this directory during the backup, causing it to exit with an error status. Change-Id: If7009cfcd5a3a07c07108149772cc8c1873bf277 --- inventory/service/host_vars/review01.openstack.org.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inventory/service/host_vars/review01.openstack.org.yaml b/inventory/service/host_vars/review01.openstack.org.yaml index 29dbe95594..bd2e2222d5 100644 --- a/inventory/service/host_vars/review01.openstack.org.yaml +++ b/inventory/service/host_vars/review01.openstack.org.yaml @@ -70,3 +70,8 @@ letsencrypt_certs: # 3002 is github. letsencrypt_gid: 3003 gerrit_self_hostkey: '[review.opendev.org]:29418,[review.openstack.org]:29418,[104.130.246.32]:29418,[2001:4800:7819:103:be76:4eff:fe04:9229]:29418 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCfsIj/jqpI+2CFdjCL6kOiqdORWvxQ2sQbCzSzzmLXic8yVhCCbwarkvEpfUOHG4eyB0vqVZfMffxf0Yy3qjURrsroBCiuJ8GdiAcGdfYwHNfBI0cR6kydBZL537YDasIk0Z3ILzhwf7474LmkVzS7V2tMTb4ZiBS/jUeiHsVp88FZhIBkyhlb/awAGcUxT5U4QBXCAmerYXeB47FPuz9JFOVyF08LzH9JRe9tfXtqaCNhlSdRe/2pPRvn2EIhn5uHWwATACG9MBdrK8xv8LqPOik2w1JkgLWyBj11vDd5I3IjrmREGw8dqImqp0r6MD8rxqADlc1elfDIXYsy+TVH' +borg_backup_excludes_extra: + - /home/gerrit2/.launchpadlib/cache/* + - /home/gerrit2/review_site/cache/* + - /home/gerrit2/review_site/tmp/* + - /home/gerrit2/review_site/index/*