On 06/12/2014 10:29 PM, Kevin Lin wrote:
The "--exclude-dir" option to clamscan takes a regex argument that tells
clamscan to exclude the directories that match the regex.
This means that specifying:
*--exclude-dir=BTC*
will exclude all directories whose absolute path that match BTC (e.g.
"/some/directory/BTC", "/BTC", "/some/directory/helloBTC",
"/some/directory/somethingBTCsomething", "/BTC/some/other/directory)
*--exclude-dir=/BTC*
will exclude all directories that exclusively start with BTC as the regex
matches against the absolute directory address (e.g. "/BTC",
"/some/directory/BTC", "something/BTCsomething/something)
If you want to exclude a very specific directory from the clamscan, you
would want to use the absolute path to the directory to minimize the number
of regex matches and marking the start and end of the regex accordingly.
So for the case of "/BTC" which I am assuming is the absolute path to
your Bitcoin
Directory which you wish to exclude. I would use the command:
*clamscan --recursive=yes --exclude-dir=^/BTC$*
Note the usage of '^' and '$' to force the regex to only match the "/BTC"
directory.
For further information on clamscan options, you can refer to the clamscan
man page or run*clamscan --help*.
__________
- many thanks
regards
Ellan
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/support/ml