SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


opendsrestore
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

opendsrestore [2013/04/30 15:14] (current)
sjoerd created
Line 1: Line 1:
 += openDS LDAP Restore =
  
 +This is a restore from LDAP data created in [[tdsldapbackup]].
 +
 += Copy Backup ldif File to openDS Server =
 +<code bash>
 +scp backup.ldif.gz sjoerd@opends.company.local:/​tmp
 +</​code>​
 +
 += Make Backup Ready For Use =
 +<code bash>
 +gunzip backup.ldif.gz
 +</​code>​
 +Rename the unzipped file to import.ldif
 +<code bash>
 +mv backup.ldif import.ldif
 +</​code>​
 +
 += Import / Restore the LDIF =
 +<code bash>
 +/​opt/​OpenDS-2.2.0/​bin/​import-ldif \
 +  --ldifFile /​tmp/​import.ldif \
 +  --backendID userRoot \
 +  --replaceExisting \
 +  --rejectFile /​tmp/​import-rejected.log \
 +  --clearBackend \
 +  --bindDN cn=manager \
 +  --bindPassword <​secret>​
 +</​code>​
 +
 +In logfile /​var/​log/​opends/​errors you can follow the progress of the import.
 +
 +{{tag>​ldap backup}}
opendsrestore.txt ยท Last modified: 2013/04/30 15:14 by sjoerd