[Samba] Samba backup and restore with LDAP

Adam Tauno Williams awilliam at whitemice.org
Tue Jul 11 15:30:45 GMT 2006


> i use slapcat to backup my Ldap - Database and slapadd to restore it.
> Beware: stop LDAP before Backup!!! 

There is no reason to stop LDAP if you are using back-bdb or back-hdb
(and if you are using back-ldbm you are also crazy).

But you might want to do a:
su ldap -c "/usr/bin/db_checkpoint -1 -v -h /var/lib/ldap"
... prior to the backup, and it doesn't hurt to do one periodically
anyway (especially with OpenLDAP 2.2.x).



More information about the samba mailing list