Exclude tmp dirs from backups
What does this MR do?
Add '--exclude' for tmp directories in located in paths included in backups. Currently a backup job may fail due to a file or directory within a tmp dir being removed during the backup.
This change adds a new 'exclude' optional parameter to Backup::Files
to indicate directories that should not be included in backups. This should prevent changes in temporary files from breaking backups and also stop unneeded files from being included in the backup archive.
Related to #244397 (closed)
Does this MR meet the acceptance criteria?
Conformity
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
Edited by Will Chandler (ex-GitLab)