Exporting Data
To import LDIF using
From the command line, change to the following directory:
1.
/usr/netscape/servers/slapd-
where serverID is the name of your directory server.
Run the
2.
For more information about using this script, refer to Netscape Directory Server
Configuration, Command, and File Reference.
Two examples of performing an import using
Windows NT batch file:
ldif2ldap "cn=Directory Manager" secret
c:\netscape\servers\slapd-dirserver\ldif\demo.ldif
UNIX shell script:
ldif2ldap "cn=Directory Manager" secret
/usr/netscape/servers/slapd-dirserver/ldif/demo.ldif
The
ldif2ldap
password of the administrative user, and the absolute path and file name of the
LDIF file(s) to be imported.
Exporting Data
You can use the LDAP Data Interchange Format (LDIF) to export database entries
from your databases. LDIF is a standard format described in RFC 2849, "The LDAP
Data Interchange Format (LDIF) - Technical Specification."
Exporting data can be useful for the following:
•
Backing up the data in your database
•
Copying your data to another directory server
•
Exporting your data to another application
•
Repopulating databases after a change to your directory topology
For example, suppose your directory is contained by one database and you decide
to split its contents over two databases as illustrated in Figure 4-1.
144
Netscape Directory Server Administrator's Guide • January 2002
ldif2ldap
command-line script.
ldif2ldap
script requires you to specify the DN of the administrative user, the
:
serverID
/
ldif2ldap
follow:
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.01 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers