Dear fellow users,

I'm just starting with Bareos. Please, can someone explain a certain oddity with Fileset Include Options?

I've got the following in my config:

============================
FileSet {
  Name = "SKAppServerFileset"

  Include {
    Options {
      Exclude = yes
      Wild = "/var/www/*/public_html/WEB-INF/tmp/*"
      Wild = "/var/lib/postgresql/9.4/main/*"
      Wild = "/tmp/*"
      Wild = "/var/cache/apt/archives/*"
      Wild = "/var/lib/nginx/static-cache/*"
    }

    Options {
      Signature = SHA1
      Compression = LZ4HC
      noatime = yes
      checkfilechanges = yes
    }

    File = /
    File = /dev
  }

  Exclude {
    File = /.journal
    File = /.fsck
    File = /.autofsck
  }
}
============================

The idea is simple: I'd like to use SHA1 signature and compress everything, while excluding a few things. However, when I use bconsole command "show filesets", the fileset becomes like this:

============================
FileSet {
  Name = "SKAppServerFileset"
  Include {
    Options {
      Exclude = yes
      Wild = "/var/www/*/public_html/WEB-INF/tmp/*"
      Wild = "/var/lib/postgresql/9.4/main/*"
      Wild = "/tmp/*"
      Wild = "/var/cache/apt/archives/*"
      Wild = "/var/lib/nginx/static-cache/*"
      Signature = SHA1
      Compression = LZ4HC
      NoAtime = Yes
      CheckFileChanges = yes
    }
    File = "/"
    File = "/dev"
  }
  Exclude {
    File = "/.journal"
    File = "/.fsck"
    File = "/.autofsck"
  }
}
============================

The two Options blocks are joined together. Why?
I didn't check thoroughly, but it seems because of this I'm missing compression (i.e. observing no substantial effect of compression). AFAIK if there is any match clauses inside an Options block, the relevant options would be applied only to matched files / dirs (source: the docs). It seems as if compression option is applied to excluded items.

A few more experiments with Options blocks have shown the same behavior - they become joined.

Am I missing something? Or probably misunderstanding something?

Best regards,
Sergey K.

--
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to