>>>>> On Tue, 6 Jan 2026 10:22:28 +0100, Stefan G Weichinger via Bacula-users
>>>>> said:
>
> At a customer I have to set up various Jobs to backup a huge directory
> with movies. I want to split that into several smaller jobs by using
> Filesets.
>
> So I asked an LLM:
>
> # this should backup only files and directories
> # starting with "a-g" or "A-G"
>
> Fileset {
> Name = "films-A-G"
> Include {
> File = "/data/multimedia/films"
> Options {
> Regex = ".*/[A-Ga-g][^/]*$"
> }
> }
> }
>
> That doesn't seem to work, and more or less looks wrong to me.
>
> What's the way to go here?
>
> Regex? Wildfile? WildDir?
You need to use the exclude = yes option to remove some subset of the
files/directories. Look at the examples for /home/b in
https://docs.baculasystems.com/BETechnicalReference/Director/DirectorResourceTypes/FilesetResource/index.html
> trial and error is a bit problematic, as these jobs are terabytes in
> size quickly.
>
> Do I remember correctly that someone posted some test-script for such cases?
You can use use the "estimate job=... listing" command in bconsole to see what
will be backed up.
__Martin
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users