clamscan

clamscan -r --cross-fs=no --follow-file-symlinks=1 --follow-dir-symlinks=1  /

This skips root and home folders. I can’t figure how to make it use this line.

    --exclude-dir=REGEX                  Don't scan directories matching REGEX
    --include-dir=REGEX                  Only scan directories matching REGEX

https://linux.die.net/man/1/clamscan

All methods i’v tried have not worked.

ExcludedScanFolders= .cache dev etc proc tmp srv sys var .snapshots
LinuxScanFolders= bin boot home lib lib64 mnt sbin root usr

I can’t use either function, use of those statements many times fails.

What is the ‘regular expression’ that will make this work?

--include-dir=REGEX                  Only scan directories matching REGEX

nice -n 0 clamscan -r --cross-fs=no --follow-file-symlinks=1 --follow-dir-symlinks=1 --exclude-dir='.snapshots'  /

Scanning Folder /etc
Scanning Folder /boot
Scanning Folder /usr
Scanning Folder /lib
Scanning Folder /bin
Scanning Folder /lib64
Scanning Folder /sbin

This is best result I could get. After, I have to manually scan /home and /root.