On 26/07/16 11:39, bacula-users-requ...@lists.sourceforge.net wrote: > Date: Fri, 22 Jul 2016 03:48:24 -0700 > From: Gama Ray <bacula-fo...@backupcentral.com> > Subject: [Bacula-users] Exclude Directory > To: bacula-users@lists.sourceforge.net > Message-ID: <1469184504.m2f.417...@www.backupcentral.com> > > Hello, > I use Bacula 7.0.5 on CentOS6.4 > > I want to exclude all directories with names like " thingy " without the > whole way . > > ]FileSet > { > Name = "FileSet_data" > Include { Options { signature = SHA1; aclsupport = yes } > File = /data > } > Exclude > { > File = thingy > } > } > > This don't exlude thingy directory. > > I have to write full name like > File = /data/thingy > to exclude the directory > > My problem is that this directory can be found in other subdirectories whose > name can be variable over time. > > Thanks
In case you want to back up directories without their contents these work for /tmp, /var/tmp, /lost+found and /var/lost+found: Options { Exclude = yes Regex = "^(/[^/]*)*/tmp/.*" Regex = "^(/[^/]*)*/lost\\+found/.*" If you want to exclude the directories themselves as well as their contents, I understand it is simple but I do not have a tested solution to share ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users