On Sunday 04 March 2007 4:15 pm, Dennis Peterson wrote: > > > > Steve, since I'm using a script that was posted here quite some time ago > > what changes need to be made: > > Create a text file, msrbl.list, with these two lines: > MSRBL-SPAM.ndb > MSRBL-Images.hdb > > Run rsync and call that file, and the rsync URI from above: > > rsync -aq --files-from=/path/to/msrbl.list \ > rsync://rsync.mirror.msrbl.com/msrbl/ /path/to/pattern-files > > This will download both the spam and image files in one invocation of > rsync, and put them in the directory pointed to by /path/to/pattern-files. > > Run validation checks as before to be sure they won't break clamd. The > msrbl.list is to allow the thing to scale in the event msrbl adds more > lists to their fine services. > > dp > Hopefully I've done this right, a new MSRBL-images.hdb and MSRBL-spam.ndb were downloaded to /var/tmp/clamav, appeared to be tested and moved to /var/lib/clamav. Here is what I now have in the script:
rsync -aq --files-from=/usr/local/bin/msrbl.list \
rsync://rsync.mirror.msrbl.com/msrbl/ /var/tmp/clamdb
test -s $tmp_dir/MSRBL-SPAM.ndb && \
clamscan --quiet -d $tmp_dir/MSRBL-SPAM.ndb && \
cp --reply=yes MSRBL-SPAM.ndb MSRBL-SPAM.ndb-bak && \
mv -f $tmp_dir/MSRBL-SPAM.ndb .
test -s $tmp_dir/MSRBL-Images.hdb && \
clamscan --quiet -d $tmp_dir/MSRBL-Images.hdb && \
cp --reply=yes MSRBL-Images.hdb MSRBL-Images.hdb-bak && \
mv -f $tmp_dir/MSRBL-Images.hdb .
I ran it twice and both times it downloaded a new .hdb and .ndb file at least
the 'modified' times were within a couple of minutes of the current time.
I've commented out the
# curl -R -s -z MSRBL-SPAM.ndb -o $tmp_dir/MSRBL-SPAM.ndb \
# http://download.mirror.msrbl.com/MSRBL-SPAM.ndb
# curl -R -s -z MSRBL-Images.hdb -o $tmp_dir/MSRBL-Images.hdb \
# http://download.mirror.msrbl.com/MSRBL-Images.hdb
--
Chris
KeyID 0xE372A7DA98E6705C
pgpv4CcPmDd4a.pgp
Description: PGP signature
_______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html
