View Issue Details

IDProjectCategoryView StatusLast Update
0000991bareos-coredirectorpublic2023-12-12 13:29
Reporterhsn Assigned Tobruno-at-bareos  
Status closedResolutionno change required 
Platformx86OSWindowsOS Version10
Product Version17.2.4 
Summary0000991: shadowing=globalremove do not consider excluded files
DescriptionIf your exclude filter matches file then it is not shadowed and should not be removed during globalremove phase.

Look at my example. I am excluding *.sql from first Include {} and Including it in second Include with different GZIP compression level. Bareos incorrectly thinks that file is shadowed in second Include part and does not backup it at all.
Steps To ReproduceFileSet {
  Name = "Catalog"
  Description = "Backup the catalog dump and Bareos configuration files."
  Include {
    Options {
      signature = SHA1
      compression = GZIP9
      Wildfile = *.orig
      Wildfile = *.sql
      Exclude = yes
      Ignore case = yes
    File = "C:/ProgramData/Bareos" # configuration
  Exclude {
    File = "C:/ProgramData/Bareos/logs"
    File = "C:/ProgramData/Bareos/working"
  Include {
    Options {
      signature = SHA1
      compression = GZIP5
      ignore case = yes
    File = "C:/ProgramData/Bareos/catalog/bareos.sql" # database dump
TagsNo tags attached.




2023-12-12 13:29

manager   ~0005609

By default Bareos backup everything in File, in the first case you exclude that file, you need a regex/wild expression in the second run to reselect the file.
This is documented.

Issue History

Date Modified Username Field Change
2018-07-28 14:55 hsn New Issue
2023-12-12 13:29 bruno-at-bareos Assigned To => bruno-at-bareos
2023-12-12 13:29 bruno-at-bareos Status new => closed
2023-12-12 13:29 bruno-at-bareos Resolution open => no change required
2023-12-12 13:29 bruno-at-bareos Note Added: 0005609