>>>>> On Wed, 7 Aug 2019 12:10:36 +0100, Adam Weremczuk said:
> 
> Hi all,
> 
> Following a series of "Config error: Keyword regexfile not permitted in 
> this resource" I finally got this:
> 
> FileSet {
>    Name = node_fileset
>    Include {
>      Options {
>        exclude = no
>        regexfile = "^/var/lib/vz/dump/vzdump-lxc-101.*"
>      }
>      Options {
>        signature = SHA1
>        xattrsupport = yes
>        aclsupport = yes
>      }
>      File = "/etc"
>      File = "/root"
>      File = "/usr/local"
>      File = "/var"
>    }
>    Exclude {
>      File = "/var/lib/vz/dump"
>      File = "/var/lib/vz/template/cache"
>    }
> }
> 
> Unfortunately when I run bconsole -> estimate job=node_backup listing 
> client=node_fd my regexfile (which I want to include) is not listed.
> 
> What am I doing wrong?

It is probably because you have excluded all of /var/lib/vz/dump, so it never
considers files matching the regexfile inside it.

You need something like this (untested):

FileSet {
   Name = node_fileset
   Include {
     Options {
       regexfile = "^/var/lib/vz/dump/vzdump-lxc-101.*"
       signature = SHA1
       xattrsupport = yes
       aclsupport = yes
     }
     Options {
       exclude = yes
       wild = "/var/lib/vz/dump/*"
     }
     Options {
       # default options for everything else
       signature = SHA1
       xattrsupport = yes
       aclsupport = yes
     }
     File = "/etc"
     File = "/root"
     File = "/usr/local"
     File = "/var"
   }
   Exclude {
     File = "/var/lib/vz/template/cache"
   }
}

__Martin


_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to