![Netscape NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR Administrator'S Manual Download Page 147](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-1-administrator/netscape-directory-server-6-1-administrator_administrators-manual_1674675147.webp)
Importing Data
Chapter
4
Populating Directory Databases
147
Importing From the Command Line
You can use three methods for importing data through the command line:
•
Using
ldif2db
—This import method overwrites the contents of your database
and requires the server to be stopped.
•
Using
ldif2db.pl
—This import method overwrites the contents of your
database while the server is still running.
•
Using
ldif2ldap
—This method appends your LDIF file through LDAP. You
can use this method to append data to all of your databases.
Importing Using the ldif2db Command-Line Script
The
ldif2db
script overwrites the data in a database you specify. The script
requires you to shut down the server before proceeding with the import.
By default, the script first saves and then merges any existing
o=NetscapeRoot
configuration information with the
o=NetscapeRoot
configuration information in
the files being imported.
To import LDIF with the server stopped:
1.
From the command line, change to the following directory:
serverRoot
/slapd-
serverID
/
2.
Stop the server by typing the following:
./stop-slapd
3.
Run the
ldif2db
command-line script.
For more information about using this script, refer to Netscape Directory Server
Configuration, Command, and File Reference.
Two examples of performing an import using
ldif2db
follow:
CAUTION
This script overwrites the data in your database.
CAUTION
If you a specify a database in the
-n
option that does not correspond
with the suffix contained by the LDIF file, all of the data contained
by the database is deleted and the import fails. Make sure that you
do not misspell the database name.
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR
Page 1: ...Administrator s Guide Netscape Directory Server Version6 1 August 2002...
Page 20: ...20 Netscape Directory Server Administrator s Guide August 2002...
Page 24: ...24 Netscape Directory Server Administrator s Guide August 2002...
Page 142: ...Using Referrals 142 Netscape Directory Server Administrator s Guide August 2002...
Page 440: ...Miscellaneous Tuning Tips 440 Netscape Directory Server Administrator s Guide August 2002...
Page 442: ...442 Netscape Directory Server Administrator s Guide August 2002...
Page 478: ...PTA Plug In Syntax Examples 478 Netscape Directory Server Administrator s Guide August 2002...
Page 498: ...498 Netscape Directory Server Administrator s Guide August 2002...
Page 538: ...Examples of LDAP URLs 538 Netscape Directory Server Administrator s Guide August 2002...