Importing From The Command Line - Netscape DIRECTORY SERVER 6.01 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

Importing From the Command Line

You can use three methods for importing data through the command line:
Using
—This import method overwrites the contents of your database
ldif2db
and requires the server to be stopped.
Using
ldif2db.pl
database while the server is still running.
Using
ldif2ldap
can use this method to append data to all of your databases.
Importing Using the ldif2db Command-Line Script
The
script overwrites the data in a database you specify. The script
ldif2db
requires you to shut down the server before proceeding with the import.
By default, the script first saves and then merges any existing
configuration information with the
the files being imported.
CAUTION
This script overwrites the data in your database.
To import LDIF with the server stopped:
From the command line, change to the following directory:
1.
/usr/netscape/servers/slapd-
where serverID is the name of your directory server.
Stop the server by typing the following:
2.
./stop-slapd
Run the
3.
ldif2db
For more information about using this script, refer to Netscape Directory Server
Configuration, Command, and File Reference.
CAUTION
If you a specify a database in the
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.
—This import method overwrites the contents of your
—This method appends your LDIF file through LDAP. You
o=NetscapeRoot
serverID
command-line script.
o=NetscapeRoot
configuration information in
/
option that does not correspond
-n
Chapter 4
Populating Directory Databases
Importing Data
141

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents