[Fedora-directory-users] Restoring an LDAP backup to a different server db2bak
Oscar A. Valdez
oscar.valdez at duraflex.com.sv
Mon Apr 9 18:47:08 UTC 2007
El lun, 09-04-2007 a las 14:22 -0400, Eddie C escribió:
> Every night I run a db2bak.
> Can this backup be safely restored to a different server? using
> bak2db?
It won't.
I had to do a restore by necessity, and here's what I had to do (by
Noriko Hosoi's gracious recommendation):
1. on the current directory server, export the data into ldif files.
go to your <server_root>/slapd-<id>; run "db2ldif -n <backend>" for each backend (e.g., userRoot) EXCEPT NetscapeRoot
2. install new FDS
3. go to the <new_server_root>/slapd-<id>
4. stop the directory server
5. import the ldif files from the current directory server
repeat "ldif2db -n <backend> -i <server_root>/slapd-<id>/<date_time>.ldif" for each <date_time>.ldif file exported in (1).
6. start the directory server
The issue is documented in this thread:
https://www.redhat.com/archives/fedora-directory-users/2007-February/msg00024.html
The NetscapeRoot instance is server-specific, and it won't restore
properly on a new server.
--
Oscar A. Valdez
More information about the Fedora-directory-users
mailing list