[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: changing database backend
Hi,
On Tue, 4 Feb 2014, Aleksander Dzier?anowski wrote:
Hi,
Any ideas how to migrate database from back-bdb to other backend (for example mdb), while using cn=config?
When using slapd.conf - flat config file - it seems to be simple task. But how to do it using cn=config? For sure it is not online operation, and any offline modifications to LDIF config files are not recommended.
use slapcat to dump your cn=config in database 0
slapcat -n0 -F path/slapd.d -l config.ldif
edit config.ldif and reimport
mv slapd.d slapd.d.old
mkdir slapd.d
slapcat -n0 -F path/slapd.d -l config.ldif
I like to use "-o ldif-wrap=no" with slapcat to enable easier diff of config dumps.
Greetings
Christian
Regards,
?
Olo
--
Christian Kratzer CK Software GmbH
Email: ck@cksoft.de Wildberger Weg 24/2
Phone: +49 7032 893 997 - 0 D-71126 Gaeufelden
Fax: +49 7032 893 997 - 9 HRB 245288, Amtsgericht Stuttgart
Mobile: +49 171 1947 843 Geschaeftsfuehrer: Christian Kratzer
Web: http://www.cksoft.de/