-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Theo Van Dinter writes:
> On Mon, Dec 08, 2003 at 01:11:06PM -0600, [EMAIL PROTECTED] wrote:
> > I'd like to back up the journal periodicly to disk.  Right now I have
> 
> There's really no point to that.  Just sync the journal to the DB.
> 
> > 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?
> 
> sure.  I forget the details of bayes file locking, but you can probably
> just make a bayes.lock file (open O_EXCL), copy the DBs, then remove
> the lock file.

Regarding the journal, that is written atomically; at any time, it will
not contain partial data (unless the underlying filesystem breaks that
convention).  So a simple "cp" should suffice when copying that file for
backup.

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Exmh CVS

iD8DBQE/1NpxQTcbUG5Y7woRAj9lAJ4+/z/ZqFIA9vAzx6K/T3DhGcseKgCeLHeQ
6aZcASq17fm+j5KHsX/TCbg=
=bgqF
-----END PGP SIGNATURE-----



-------------------------------------------------------
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