Skip to navigation
Linux's virus scanner Clamscan to scan only new files maxium of 24 hours
29.10.23
You need to pip the scanning files to clamscan, as it does not have a max file timestamp checker. ## you can use find first and pip it to clamscan ``` find /var/customers -type f -mmin -1140 -print0 -not -path '*/logs/*' -not -path '*/tmp/*' | xargs -0 clamscan --remove --exclude=/customers/logs --exclude=/customers/tmp --log=/var/log/clamscan.log #control check #find /var/customers -type f -mmin -1140 -not -path '*/logs/*' -not -path '*/tmp/*' | wc -l ```
https://rsmitty.github.io/clamscan-files-by-date/
Reply
Anonymous
Information Epoch 1732398602
Small is beautiful.
Home
Notebook
Contact us