Bogofilter regular maintaniance ??

Michael Gale michael.gale at utilitran.com
Sat Nov 13 00:35:51 CET 2004


Thanks ... I did mean bogoutil everywhere I type bogofilter ... :)

I switched to dd plus doing a dump using bogoutil.

Michael.


Matthias Andree wrote:
> Michael Gale <michael.gale at utilitran.com> writes:
> 
> 
>>db4_archive bogofilter_dir | while read line
>>do
>>rm $line
>>done
> 
> 
> You can use: db4_archive -d -h bogofilter_dir
> 
> For greater effect, run db4_checkpoint -1h bogofilter_dir
> before running db4_archive.
> 
> 
>>Then incase of wordlist corruption or some thing ... I would do:
>>
>>bogofilter -f bogofilter_dir
> 
> 
> bogoutil that is.
> 
> 
>>if fails
>>bogofilter -F bogofilter_dir
>>if fail then
> 
> 
> Actually, bogoutil (and all other bogo* processes running automatic
> recovery) will automatically attempt catastrophic recovery when regular
> recovery fails. This is likely to fail, too, because you're removing log
> files which are needed for catastrophic recovery.
> 
> ...
> 
>>rm bogofilter_dir/__db*
>>rm bogofilter_dir/log**
>>rm wordlist.db
>>cp wordlist.db_dayofweek wordlist.db
> 
> 
> This isn't safe. Use dd, as shown in README.db.
> 
> 
>>bogofilter -f bogofilter_dir
> 
> 
> Again, that would be bogoutil. It isn't needed when you've restored a
> known good database.
> 
> 
>>Am I missing anything ??
> 
> 
> A little. No procmail or maildrop or other filter should interfere and
> run bogofilter while you are replacing a different database file.
> Running db_verify wordlist.db_dayofweek before replacing the other file
> looks like a good idea to me.
> 

-- 
Michael Gale
Lan Administrator
Utilitran Corp.

We Pledge Allegiance to the Penguin



More information about the Bogofilter mailing list