Hello, I'm running linux (fedora 11) and clamav (0.95.3) and I need to exclude multiple directories but am having trouble, any ideas?
Directory contents: 3 files and 3 directories (each containing a file): [r...@conrad testClam]# find /tmp/testClam|sort /tmp/testClam /tmp/testClam/file1 /tmp/testClam/file2 /tmp/testClam/file3 /tmp/testClam/test /tmp/testClam/test1 /tmp/testClam/test1/test1File /tmp/testClam/test2 /tmp/testClam/test2/test2File /tmp/testClam/test/testFile Normal scan: [r...@conrad testClam]# /opt/clamav/bin/clamscan -r /tmp/testClam /tmp/testClam/file1: OK /tmp/testClam/test2/test2File: OK /tmp/testClam/test/testFile: OK /tmp/testClam/file2: OK /tmp/testClam/file3: OK /tmp/testClam/test1/test1File: OK ----------- SCAN SUMMARY ----------- Known viruses: 702145 Engine version: 0.95.3 Scanned directories: 4 Scanned files: 6 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 8.401 sec (0 m 8 s) I want to recursively exclude only the test and test1 directories while scanning everything else (including the test2 directory), but what I'm trying is not working. The man pages says multiple "--exclude-dir" statements are acceptable, but they're not working: [r...@conrad testClam]# /opt/clamav/bin/clamscan --exclude-dir=/tmp/testClam/test --exclude-dir=/tmp/testClam/test1 -r /tmp/testClam /tmp/testClam/file1: OK /tmp/testClam/test2: Excluded /tmp/testClam/test: Excluded /tmp/testClam/file2: OK /tmp/testClam/file3: OK /tmp/testClam/test1: Excluded ----------- SCAN SUMMARY ----------- Known viruses: 702145 Engine version: 0.95.3 Scanned directories: 1 Scanned files: 3 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 7.805 sec (0 m 7 s) The above excludes the test2 directory, not what I want. I've tried using relative paths too with no difference. I could probably use "--include-dir" but that's not acceptable in the real world seeing how I won't know all the directories that I would want to include, hence specifying explicit excludes. I've also tried to combine the excludes, separated by a pipe but that's of no avail too: [r...@conrad testClam]# /opt/clamav/bin/clamscan --exclude-dir="/tmp/testClam/test|/tmp/testClam/test1" -r /tmp/testClam /tmp/testClam/file1: OK /tmp/testClam/test2: Excluded /tmp/testClam/test: Excluded /tmp/testClam/file2: OK /tmp/testClam/file3: OK /tmp/testClam/test1: Excluded ----------- SCAN SUMMARY ----------- Known viruses: 702145 Engine version: 0.95.3 Scanned directories: 1 Scanned files: 3 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 6.881 sec (0 m 6 s) Any ideas? Thanks. _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml