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
This commit is contained in:
Ian Wienand 2020-11-11 13:09:21 +11:00
parent 93b4c9ed1f
commit 6bcfe05742
1 changed files with 5 additions and 0 deletions

View File

@ -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/*