Emmanuel Lesouef wrote:
Yes, I was thinking about this solution.
But isn't it network ressource hungry ?
And if I would like to keep a files based bayes db, what should be the
good manner to migrate one to another server ?
Thanks Sietse for the advice.
Sietse van Zanen a écrit :
Sure, use MySQL for bayes storage and have both servers use that DB.
Then you could be fairly sure, both use the same bayes.
I think it should even be possible to dump both databases and migrate
into one SQL db. But I don't use MySQL myself, so I would not know how.
-Sietse
On your most accurate machine, run a CRON job that once a week does:
sa-learn --siteconfigpath=/your/site/path --force-expire
sa-learn --siteconfigpath=/your/site/path --backup >> /tmp/weeklyMerge.sal.bak
scp /tmp/weeklyMerge.sal.bak [EMAIL PROTECTED]://tmp/weeklyMerge.sal.bak
mv /tmp/weeklyMerge.sal.bak /tmp/weeklyMerge.sal.sent
... use ssh key-auth so no password interaction is required for your
robot account.
On the "other.machine.tld" run a cron job that fires one hour later
that:
sa-learn --siteconfigpath=/your/site/path --restore /tmp/weeklyMerge.sal.bak
mv /tmp/weeklyMerge.sal.bak /tmp/weeklyMerge.sal.restored
sa-learn --siteconfigpath=/your/site/path --force-expire
--
--Michel Vaillancourt
Wolfstar Systems
www.wolfstar.ca