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
ldif2db
database 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.
NOTE
To import a database that has been encrypted, you must use the
option with the script. See "Exporting and Importing an Encrypted
Database," on page 102, for more information.
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.
serverRoot
/slapd-
Stop the server by typing the following:
2.
./stop-slapd
Run the
3.
ldif2db
For more information about using this script, refer to Red Hat Directory Server
Configuration, Command, and File Reference.
— 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
Chapter 4
Populating Directory Databases
Importing Data
-E
153
Need help?
Do you have a question about the DIRECTORY SERVER 7.1 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers