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