[Date Prev][Date Next]
Re: migrating to another server - restore problem - slapcat slapadd
Christophe Dumonet wrote:
I'm migrating from an old openldap server to a new one.
So, I have done a dump of the ldap database with a " slapcat -l
mydump.ldap -f /etc/openldap/slapd.conf -b "dc=mycompany,dc=com"
--> So I had a dump ldif file where organisational units and dn are
not in hierarchical order.
In my new server ( which works fine , I can ldapadd some ou,dn , no
--> The slapadd command doesn't work because my ldap data in the ldif
file is not in hierarchical order.
You must still be using an extremely old version of OpenLDAP. Since OpenLDAP
2.2/back-bdb you can slapadd in any order.
I can't re-order manually this because it's a important database ( the
ldif --> 50Mo).
My slapadd command to restore is : slapadd -l mydump.ldif -f
/etc/openldap/slapd.conf -b "dc=mycompany,dc=com"
and the errors are relative to the ldif OU order, I had trying to
cut/paste in the ldif file some OUs to reorder and errors are reporting
to another OUs...which are not in hierachical order !
How can I do to restore quickly my data to my new server ?
Any help would be appreciated,
Christophe Dumonet, From france
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/