Borg ignore ansible tmp files

If borg sees an ansible tmp file just before it is removed by ansible
then we can get errors of this form when running borg:

  stat: [Errno 2] No such file or directory: '/root/.ansible/tmp/ansible-tmp-$IDENTIFIER'

This causes the backup run to report failure. Address this by adding
/root/.ansible/tmp/* to our borg backup excludes list.

Change-Id: Ie2c7081a4510959f6514b1cb7eb8facc4ac129fb
This commit is contained in:
Clark Boylan 2022-05-05 08:36:20 -07:00
parent 14704cc8e0
commit 72eeb7548c
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@ borg_backup_excludes:
- '/etc/project-config/*'
- '/home/*.cache/*'
- '/root/*.cache/*'
- '/root/.ansible/tmp/*'
- '/root/.bup*'
- '/var/cache/*'
- '/var/tmp/*'