Home Forums OS X Server and Client Discussion Open Directory backing up ldap master dc=xxx,dc=domain,dc=country to other dc=yyy,…

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #371495
    mbracco
    Participant

    Hello,

    I’d like to backup my ldap master dc=xxx 10.5.2 now to a new server with a different ldap dc=yyy.

    Backing up with server admin and importing to new server results in no error code, and no data in ldap.

    Is there a possibility to do this with tools or commandline ?

    I found nothing

    Mike

    #371561
    luke
    Participant

    Watch the 3 Directory Services presentations from Macworld, which are available from this site under “Mac OS X” and “Server”
    [url]http://www.macworldencore.com/online/presentation.asp[/url]
    Specifically, the second one talks a lot about what data is stored where in OD, and how one would go about exporting it, massaging it, and importing it into a new OD setup.

    To quickly do what you want, you could try using “slapcat > mydirectoryback.ldif” as root on your server to get an LDIF-formatted export of your LDAP directory. Then you can use a text editor or your favorite scripting to parse out the pieces you need and modifying them to suit your needs. You will need to remove some attributes which will get recreated when you import it again. Then you can use ldapadd on your new server to import the entries. Read the man pages and test things out on a test server that doesn’t matter.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed