Hello,

In the Message; 

  Subject    : Re: [clamav-users] Using linux command "find" to get modified 
files list for scan
  Message-ID : <874j3d59u2.wl-nom...@lake.dti.ne.jp>
  Date & Time: 

[MN] == Masaru Nomiya <nom...@lake.dti.ne.jp> has written:

MN>>  clamscan and clamdscan can be used in combination with the find
MN>>  command. For example, you can use the find command to identify
MN>>  recently modified files, and then pipe the output to clamscan or
MN>>  clamdscan to scan only the modified files. This method can greatly
MN>>  reduce the scanning time, I think.

NR>  Yes, that I found evident as described in mail below. Yet, no
NR>  antivirus including ClamAV use this approach in their
NR>  product. There must be reason(s). I am just trying to find that
NR>  reason.

MN> I found it, but written in Japanese. (^^;;

MN>   https://tex2e.github.io/blog/shell/find-exec

MN> Can't you do something about it?

This is just a basic idea.

How about this?

    $ find . -type f -mtime -1 | clamscan -

This should allow you to quickly scan only the changed files within
the past day.

Best Regards & Good Night.

---
┏━━┓彡 野宮  賢                             mail-to: nomiya @ lake.dti.ne.jp
┃\/彡
┗━━┛  "Companies have come to view generative AI as a kind of monster that
          must be fed at all costs―even if it isn’t always clear what exactly
          that data is needed for or what those future AI systems might end up
          doing."
          
        -- Generative AI Is Making Companies Even More Thirsty for Your Data --
_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat

Reply via email to