Marijn Vriens wrote: > Hi all, > > If this has been covered endlessly already, please let me know where I > can find it, I cannot find the answers in the docs. > > I have been struggling with the file set for a while now > > I want that when a user creates a directory "junk" in his home, it is > excluded from the backup. > > Here“s the latest extravagance that I came up with, simpler solutions, > using wilddir etc also haven't worked.. I guess i am doing something > fundamentally wrong. > > FileSet { > Name = "LinuxServer" > Include { > Options { > Signature = SHA1 > Compression = GZIP > Sparse = yes > Regex = "^.*/junk/.*$" > Exclude=yes > } > File = /etc > File = /root > File = /home > File = /usr/local > File = /var/local > } > }
If regexes aren't working for you, then assuming all user home directories are under /home, try this: FileSet { Name = "LinuxServer" Include { Options { Signature = SHA1 Compression = GZIP Sparse = yes } File = /etc File = /root File = /home File = /usr/local File = /var/local } Exclude { File = /home/*/junk } } This assumes, of course, that such 'junk' directories are created at the top level of the users's home directory. If there is, for example, /home/fred/my-stuff/files/junk, this simplistic approach will miss it. In that case, you could do something like this: FileSet { Name = "LinuxServer" Include { Options { Signature = SHA1 Compression = GZIP Sparse = yes } File = /etc File = /root File = /home File = /usr/local File = /var/local } Exclude { File = "|find /home/ -type d -a -name junk" } } -- Phil Stracchino [EMAIL PROTECTED] Renaissance Man, Unix generalist, Perl hacker Mobile: 603-216-7037 Landline: 603-886-3518 ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users