Jump to content

Anti-virus scanning of backed up files within unRAID


kleptonite

Recommended Posts

I would like to be able to schedule a regular AV scan of a sub-set of my files.

 

I imagine that ClamAV is the obvious choice for a scanner, but having found these two pages:

 

http://wiki.clamav.net/bin/view/Main/SlackwareInstall

 

http://www.linuxpackages.net/pkg_details.php?id=1784 ,

 

 

it is clear that I will need advice from someone more experienced with unRAID in order to get this software installed and running.

 

 

Is there anyone in the community who can advise me which package to choose and how to install it?

 

 

Link to comment

Had a really quick look at this while in work.

 

Used the code below to download and install ClamAV

 

wget --directory-prefix=/boot/packages/ http://www.software-mirror.com/linuxpackages/Slackware/Slackware-12.2/martijn/clamav-0.96.1-i486-1McD.tgz

installpkg /boot/packages/clamav-0.96.1-i486-1McD.tgz

 

Update your database with

 

/usr/bin/freshclam

 

Then run a scan with

 

/usr/bin/clamscan -r -v /mnt/user

 

-r for recursive sub directories

-v verbose

/mnt/user directory to scan (if you don't define a dir it will just scan /usr/bin/)

 

And that's as far as I got. Guess we'll have to rtfm to get it auto scanning new files  :D

Link to comment

Thanks for the link BRiT. I uninstalled version 0.96 and used a Slackware 13.0 build to get 0.97

 

This works on my 4.7 build

 

wget --directory-prefix=/boot/packages/http://connie.slackware.com/~alien/slackbuilds/clamav/pkg/13.0/clamav-0.97-i486-1alien.tgz

installpkg /boot/packages/clamav-0.97-i486-1alien.tgz

 

All other commands work as my post above. Seems a touch faster than 0.96, just running a scan now to see.

 

EDIT: Scan finished in ~14m30s for 2.8gig of mixed files on 0.96, same files on 0.97 took 14m2s

 

Its possible to run freshclam as a daemon so it auto updates the virus database

 

/usr/bin/freshclam -daemon -c4

 

Where -c4 will search for an update 4 times in a 24hr period. Set to anything from 1 - 24.

 

From what I've read realtime scanning of new files is not possible with vanilla ClamAV. That feature is offered by third party programs. A reasonable solution would be to set a Cron task to run on your backup folder every evening or every hour.............depends how much data you have to scan.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...