On Mon, 8 Dec 2003 [EMAIL PROTECTED] wrote:

> We've got SA 2.60 running on a Solaris 8 box with SunONE Messaging
> Server.  It is doing spam scanning for all our users (~7000).  In
> order to keep the system as speedy as possible, I've configured the
> bayes journal to sit on /tmp which is a memory file system.
>
> I'd like to back up the journal periodicly to disk.  Right now I have
> a shell script which shuts spamd down, copies the spamassassin
> directory to disk, then restarts spamd.  However, during this period
> of downtime (about 10-20 seconds), the MTA cannont process email.  I
> didn't write it, I can't change it. :(
>
> searching through the archives and docs, I've not found anything
> regarding this  issue. How have others solved this problem of backing
> up a live bayes journal database?  Would a perl script using file
> locking be a viable workaround, at least allowing the MTA to continue
> processing email?
>
> Thanks for any assistance.
>
> cary
As long as you're using bayes_learn_to_journal, the journal file will
be the only thing that's changing frequently. (actual Bayes database
files are R/O except during expire or journal sync.) So grabbing it
live may miss a few journal entries (but that shouldn't be a major
loss). If you want to be sure that you don't hit a sync/expire during
your copy, create a ".lock" file before you copy and remove after
done (see SA module 'UnixLocker.pm' for grubby detals ;)

Suggestion, copy the database files to another directory in your
memory file system (RAM-2-RAM snapshot), should go fast. Then you
can copy the snapshot to a real disk at your leisure.


-- 
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to