<div>Unfortunately I only have the db2bak from the day I need to restore. No ldif files. And I need to restore them to a new server. I do not need all the configuration data. I only need two of our data trees.</div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div><span class="gmail_quote">On 4/9/07, <b class="gmail_sendername">Oscar A. Valdez</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:oscar.valdez@duraflex.com.sv" target="_blank">oscar.valdez@duraflex.com.sv
</a>> wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">El lun, 09-04-2007 a las 14:22 -0400, Eddie C escribió:<br>> Every night I run a db2bak.<br>> Can this backup be safely restored to a different server? using 
<br>> bak2db?<br><br>It won't.<br><br>I had to do a restore by necessity, and here's what I had to do (by<br>Noriko Hosoi's gracious recommendation):<br><br>1. on the current directory server, export the data into ldif files. 
<br>go to your <server_root>/slapd-<id>; run "db2ldif -n <backend>" for each backend (e.g., userRoot) EXCEPT NetscapeRoot<br>2. install new FDS<br>3. go to the <new_server_root>/slapd-<id> 
<br>4. stop the directory server<br>5. import the ldif files from the current directory server<br>repeat "ldif2db -n <backend> -i <server_root>/slapd-<id>/<date_time>.ldif" for each <date_time>.ldif file exported in (1). 
<br>6. start the directory server<br><br>The issue is documented in this thread:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/archives/fedora-directory-users/2007-February/msg00024.html" target="_blank">
https://www.redhat.com/archives/fedora-directory-users/2007-February/msg00024.html </a><br><br>The NetscapeRoot instance is server-specific, and it won't restore<br>properly on a new server.<br>--<br>Oscar A. Valdez<br>
<br><br>--<br>Fedora-directory-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Fedora-directory-users@redhat.com" target="_blank">Fedora-directory-users@redhat.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/mailman/listinfo/fedora-directory-users" target="_blank">
https://www.redhat.com/mailman/listinfo/fedora-directory-users</a><br></blockquote></div><br>