November 9, 2017 at 4:28 pm #19523
I want to export data from one OpenDJ server and import it to another OpenDJ server, which already contains some data. I see that in the older versions of Directory Services, there was an option ‘–append’ which appended data to the server. However, I am using DS 5.0 which only overwrites data, with no append option. How can I append new data, without erasing the existing data in the second OpenDJ server.November 9, 2017 at 4:40 pm #19524Bill NelsonParticipant
Rather than using import-ldif, consider using ldapmodify -a -f.November 9, 2017 at 5:21 pm #19525Michelle ReaginParticipant
If you believe that there may be some overlap in the entries being imported and you want the server receiving the imported data to keep the entries it has and ignore identical DNs in the import, then you would want to add the “-c” option to the ldapmodify command that Bill provided. That will tell ldapmodify to continue on error, the error being that an entry with an identical DN already exists.November 9, 2017 at 6:14 pm #19527
Thanks Bill. I have an ldif which is generated using export-ldif command. There are a few entries in my old server which are already present in my new server. ldapmodify would fail for any existing entry, without changing the exported ldif file.
I was looking for any replacements for import-ldif with append option which consumes the exported ldif file. If there is no replacement for import-ldif with append option, I might consider using ldapmodify with a customised ldif file.November 9, 2017 at 10:52 pm #19529
Thanks Michelle and Bill! I think the -c option helps.November 9, 2017 at 11:13 pm #19530JnRouvignacParticipant
You must be logged in to reply to this topic.