Skip to main content

ClamScan Takes Too Long

Comments

6 comments

  • cPanelMichael
    Hello, It's likely just a limitation of your server's hardware. I don't believe you can reduce the scan time without changing out your server's hardware or reducing the number of files you scan. Thank you.
    0
  • leonep
    of course, i need to exclude more directories in the scan..... normally i scan entire /home excluding some dirs this is my command : /usr/local/cpanel/3rdparty/bin/clamscan /home --exclude-dir='/home/virtfs|/home/.cpan|/home/.cpcpan|/home/backup' -ir --remove=yes | mail -s "Scansione Virus" mail@example.com inside home i have accounts and i can exclude dirs here is it possible to exclude dir with wildcard ??? example: /home/*/logs thanks
    0
  • cPanelMichael
    is it possible to exclude dir with wildcard ???

    Hello, Yes, here's a third-party URL with information on how to do that: [clamav-users] clamscan : correct syntax : exclude Directory Thanks!
    0
  • leonep
    thank you michael, this is exactly what i am looking for
    0
  • leonep
    i am going to scan only modified file in 24 hours , can it be a right choice? thanks
    0
  • cPanelMichael
    i am going to scan only modified file in 24 hours , can it be a right choice? thanks

    Hello, That's one way of configuring clamscan, yes. Ensure it scans both files that were modified, and newly created files. Thank you.
    0

Please sign in to leave a comment.