I re-read the chapter about filesets and fileset options.
In order to better understand what is happening I simplified the fileset as
follows:
> Fileset {
> Name = “cadat"
> EnableVss = no
> EnableSnapshot = no
> Include {
> Options {
> OneFS = no
> # RegexDir = "/mnt/cdat-.*"
> }
> # Options {
> # OneFS = no
> # Exclude = yes
> # RegexDir = ".*”
> # }
> File = "/mnt"
> }
> }
I was hoping it would then backup everything in /mnt (yes they are all
different filesystems, but OneFS is set to no).
Again, nothing was backed up.
I do not understand this result. I thought I had understood what is in the
manual about filesets, but obviously I did not.
> On 15. Jun 2022, at 19:55, Justin Case <[email protected]> wrote:
>
> Hi all,
>
> I am somewhat struggling with the fileset algorithm, noob birth pains I guess.
>
> I have a bunch of VMs that have mounted(!!) docker container appdata in
> /mnt/cdat-<containername>.
>
> So I wish to backup /mnt/cdat-* on each of these VMs, meaning I wish that the
> content of each subdirectory in /mnt where the name starts with "cdat-“ gets
> backed up.
>
> So I looked into the main manual for fileset directive syntax. And I found
> this example:
>
> FileSet {
> Name = "Full Set”
> Include {
> Options {
> wilddir = "/home/a*”
> wilddir = "/home/b*"
> }
> Options {
> RegexDir = ".*”
> exclude = yes
> }
> File = /home
> }
> }
>
> So what I did is this (and it does not work, just returns 1 file, and that is
> wrong):
>
> Fileset {
> Name = “cadat"
> EnableVss = no
> EnableSnapshot = no
> Include {
> Options {
> OneFS = no
> RegexDir = "/mnt/cdat-.*"
> }
> Options {
> OneFS = no
> Exclude = yes
> RegexDir = ".*"
> }
> File = "/mnt"
> }
> }
>
> I know it must seem kinda obvious where the problem is for those who have
> been around with bacula for a while. For me it is kinda “magic”.
>
> Where is my mistake?
>
> Thanks for helping out!
> J/C
>
>
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users