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