Re: Using linux command "find" to get modified files list for scan

Masaru Nomiya via clamav-users <[email protected]>
Newsgroups gmane.comp.security.virus.clamav.user
Message-ID <[email protected]>
Hello,

In the Message; 

  Subject    : Re: [clamav-users] Using linux command "find" to get modified files list for scan
  Message-ID : <[email protected]>
  Date & Time: 

[MN] == Masaru Nomiya <[email protected]> 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 costseven if it isnt 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.