[clamav-users] clamscan not obeying the --exclude-dir directives
Dennis Peterson
dennispe at inetnw.com
Tue Jun 14 16:46:46 UTC 2016
Modify the command to allow better logging. Replace -i with -v then view the log
to see what is and is not excluded.
It is assumed that your command is one long line of text or several lines where
the linefeed is escaped with a "\".
It should not be necessary to use exclude-dir and exclude for the same target.
dp
On 6/14/16 5:33 AM, Adam Lininger wrote:
> I run clamAV on my Mac Book (installed via clamXav). It seems to be not
> entirely obeying the --exclude and --exclude-dir flags.
>
> I have a directory (/media/binstore) which is an sshfs mount from another
> server. I want to exclude scanning this directory to avoid excess network
> traffic. While clamscan never reports a virus in that directory, it is
> opening and reading the files in that directory. How can this be avoided?
>
>
> Clamscan invocation (from ps):
> /usr/local/clamXav/bin/clamscan -ri --quiet
> --log=/Users/alininge/Library/Logs/clamXav-scan.log --scan-mail=no
> --phishing-scan-urls=no --exclude="/opt/local/msf/"
> --exclude-dir="/opt/local/msf/" --exclude="/media/" --exclude-dir="/media/"
> --exclude="/media/binstore" --exclude-dir="/media/binstore"
> --exclude=^/Volumes --exclude=^/dev --exclude-dir=^/Volumes
> --exclude-dir=^/dev /
>
> Thanks,
> Adam Lininger
> _______________________________________________
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
>
> http://www.clamav.net/contact.html#ml
More information about the clamav-users
mailing list