Hello,

I did some search and was able to find a few ways of doing it but I would also 
like your suggestions.

I run this script from cron:

----
#!/bin/sh
export PATH=/usr/bin:$PATH
find /data -type f -mtime -7 >scanfiles
clamscan -f scanfiles -i
rm -f scanfiles


If you have parallel tool, the fastest way I found is :

find /data -type f -mtime -7 |parallel clamdscan -mi --fdpass --no-summary {}


--
Cordialement / Best regards,

Arnaud Jacques
Gérant de SecuriteInfo.com

Téléphone : +33-(0)3.60.47.09.81
E-mail : a...@securiteinfo.com
Site web : https://www.securiteinfo.com
Facebook : https://www.facebook.com/pages/SecuriteInfocom/132872523492286
Twitter : @SecuriteInfoCom
Signatures for ClamAV antivirus : http://ow.ly/LqfdL

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to