Red Hat Directory Server 8.0 Administrator's Guide

2
The command to start and stop the Directory Server on platforms other than Red Hat Enterprise Linux is described in
Section 3, “Starting and Stopping Servers”.
CAUTION
This script overwrites the data in the database.
To import LDIF, do the following:
1. Stop the server.
2
service dirsrv stop instance
2. Open the Directory Server instance directory.
cd /usr/lib/dirsrv/slapd-instance_name
3. Run the ldif2db command-line script.
ldif2db -n Database1 -i /var/lib/dirsrv/slapd-instance_name/ldif/demo.ldif
-i /var/lib/dirsrv/slapd-instance_name/ldif/demo2.ldif
For more information about using this script, see the Directory Server Configuration,
Command, and File Reference.
CAUTION
If the database specified in the -n option 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 the database name is not misspelled.
Option Description
-i Specifies the full path name of the LDIF files
to be imported. This option is required. To
import more than one LDIF file at a time, use
multiple -i arguments. When multiple files
are imported, the server imports the LDIF files
in the order which they are specified from the
command-line.
-n Specifies the name of the database to which
to import the data.
Importing from the Command-Line
117