Bug #25535
closedForeman Maintain backups up the entire /var/www/html/pub directory during "Collecting Config files"
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1652516
Description of problem:
Foreman Maintain backups up the entire /var/www/html/pub directory during "Collecting Config files"
If the customer has placed other things in this pub directory - they are also backed up. I noticed this when the script had been stick on "Collecting Config files" for over 15 mins and the config_files.tar.gz was at 26G
Version-Release number of selected component (if applicable):
rubygem-foreman_maintain-0.2.11
How reproducible:
100%
Steps to Reproduce:
1. Place some large files in /var/www/hml/pub
2. run foreman-maintain backup
3. observe the entire contents of pub dir get added to the zip file
Actual results:
a config_files.tar.gz that is 30G in size
Expected results:
a config_files.tar.gz that is less than 300M
Additional info:
Fixes #25535 - changed the config_files definition
Before this patch, the entire /var/www/html/pub directory was
backed up. In some cases leading to a config_files.tar.gz of
10's og Gigs.
This change ensures that only files that begin with katello- are
added during this phase.