Hi Heitor, Thanks for your comment. However, I have observed that the Exclude directive DOES work for a directory in a dynamic fileset.
What I mean is any file in a directory generated by dynamic fileset script, that matches the Exclude regex directive is NOT backed up, as expected. However if a file appears as a single standalone file (not part of some top level dir) in a dynamic fileset, it is backed up even if it is supposed to be excluded. For example, The Exclude resource mentions *.mp3 to be excluded Given below is the dynamic file set contents and its treatment by Bacula : 1. /home/yateen/testdir/foo1.txt --> Backed up, as expected 2. /home/yateen/testdir/foo1.mp3 --> Not backed up , as expected 3. /home/yateen/foo3.mp3 --> Backed up, although supposed to be excluded Note that the files in Sr No 1 & 2 above is part of a directory , whereas the Sr No 3 is a standalone file. Regards, Yateen Bhagat What I have observed is that From: Heitor Faria <hei...@bacula.com.br> Sent: Sunday, July 26, 2020 7:25 PM To: Shaligram Bhagat, Yateen (Nokia - IN/Bangalore) <yateen.shaligram_bha...@nokia.com>; bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] Conflicting Include and Exclude resource Hello Yateen, I think dynamic fileset is not compatible with regular Include options, such as the RegEx diretive. You must add that filter to your script. Regards, -- MSc Heitor Faria CEO Bacula LatAm mobile1: + 1 909 655-8971 mobile2: + 55 61 98268-4220 América Latina [ http://bacula.lat/] -------- Original Message -------- From: "Shaligram Bhagat, Yateen (Nokia - IN/Bangalore)" <yateen.shaligram_bha...@nokia.com<mailto:yateen.shaligram_bha...@nokia.com>> Sent: Sunday, July 26, 2020 09:28 AM To: bacula-users <bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>> Subject: [Bacula-users] Conflicting Include and Exclude resource Hello I am using Bacula 9.4.4 on Centos 6 I have dynamic Fileset definition where the Fileset is created on the client side. This generates some extra filenames (not dirs) for the dynamic Fileset that are also supposed to be excluded as per the Exclude resource. I observed that Bacula is not excluding such files from backup at all and these files are getting backed up. So my question is if a filename appears in the Fileset and also there is a regex pattern for it in the Exclude resource, does Bacula override the Exclude directive ? Thanks Yateen Bhagat _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net<mailto:Bacula-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bacula-users
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users