Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3260

System and Network configuration • clamav scan file 1 day old

$
0
0
I am trying to clamav scan files 1 day old, basically an incremental scan.

my testing command:
find /home/fooname/icons/ -name "*.*" -ctime -1 -type f | clamscan -r --log=/home/fooname/Documents/clamscan/$(date +%FT%T).log

This should create a list of all files in folder icons, 1 day old, pipe that list to clamscan for a recursive scan of the icons folder and write a log.
When I run this in a terminal, the scan starts at the top of /.
Can anyone show me what I am doing wrong?

Edit: When I run this in a terminal, the scan starts at the top of /home/fooname

Thanks

Statistics: Posted by rick71 — 2024-05-28 13:30 — Replies 2 — Views 71



Viewing all articles
Browse latest Browse all 3260

Trending Articles