I am monitoring a series of directories. I want to blacklist any (sub)directories that is starting with a ".".
i.e.
/home/logs/dir1/dir2/.zfs/...
/home/logs/dir1/dir2/dir3/.snapshot/...
I can't seem to get a blacklist regex working for "any directory starting with a ."
[monitor:///home/logs/dir1/]
blacklist = \/.*
/.*
would match any character, 0 or more times. This would match all your files/dirs most likely.
Try /\.[^/]+/
Should mean 'slash, literal dot, not-slash (1 or more), slash'
/K
Blacklists and whitelists use perl compatible regular expressions (PCRE) so you need to change the blacklist. Replace . with \. and * with .*
try
blacklist = /\..*