[clamav-users] [EXTERNAL] clamav scan of changed files
Arnaud Jacques
webmaster at securiteinfo.com
Tue Oct 20 12:32:18 UTC 2020
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 : aj at 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
More information about the clamav-users
mailing list