[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Disabling transaction logging for slapadd (2.1.25, bdb)



> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org [mailto:owner-openldap-
> software@OpenLDAP.org] On Behalf Of Quanah Gibson-Mount
> Sent: Wednesday, January 28, 2004 10:02 AM
> To: Buchan Milne
> Cc: openldap-software@OpenLDAP.org
> Subject: Re: Disabling transaction logging for slapadd (2.1.25, bdb)
> 
> 

[...]

> You can set up a script to delete the unnecessary ones.  We run this
> periodically out of cron:
> 
> #!/usr/local/bin/perl
> chdir("/var/log/bdb");
> @files=`/usr/local/bin/db_archive`;
> foreach $file (@files) {
>   chomp($file);
>   unlink($file);
> }
> 

This may not be nearly as much fun as writing a perl script, but in BDB 4.2
"db_archive -d" will delete unneeded log files. 

Check the documentation at
http://www.sleepycat.com/docs/utility/db_archive.html for additional
information.

Matthew Hardin
Symas Corporation
Packaged, certified, and supported LDAP software:
http://www.symas.net/download
 
> --Quanah
> 
> 
> --
> Quanah Gibson-Mount
> Principal Software Developer
> ITSS/TSS/Computing Systems
> ITSS/TSS/Infrastructure Operations
> Stanford University
> GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html