Christopher X. Candreva wrote:
On Mon, 5 Mar 2007, Dennis Peterson wrote:
It makes a great deal of sense to move the files into the clam DB directory
to insure an atomic operation. If clamd/clamav-milter should happen to
reload with a half-copied file in the DB dir, it will likely stop running.
Yah - I realized that after reviewing the suggestion. Too much focus on just
one element of the entire problem.
You can also use rsync to copy the file(s) from the download location to the
clam directory on the same server. I believe rsync will make a temp file
then mv it into place, plus it's an easy way to only update the files that
changed. ie:
rsync -av ./phish.ndb ./scam.ndb ./MSRBL-* /usr/local/share/clamav
In Unix systems rsync creates a hidden file in the destination directory
and then renames it at the end of the copy. I don't know how it works in
Windows or if it even does, but it is a very nice feature.
dp
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html