![Netscape NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR Administrator'S Manual Download Page 148](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-1-administrator/netscape-directory-server-6-1-administrator_administrators-manual_1674675148.webp)
Importing Data
148
Netscape Directory Server Administrator’s Guide • August 2002
Windows batch file:
ldif2db.bat -n Database1
-i c:\netscape\servers\slapd-dirserver\ldif\demo.ldif
-i c:\netscape\servers\slapd-dirserver\ldif\demo2.ldif
UNIX shell script:
ldif2db -n Database1
-i /usr/netscape/servers/slapd-dirserver/ldif/demo.ldif
-i /usr/netscape/servers/slapd-dirserver/ldif/demo2.ldif
The following table describes the
ldif2db
options used in the examples:
For more information about using this script, refer to the Netscape Directory Server
Configuration, Command, and File Reference.
Importing Using the ldif2db.pl Perl Script
As with the
ldif2db
script, the
ldif2db.pl
script overwrites the data in a
database you specify. This script requires the server to be running in order to
perform the import.
1.
From the command line, change to the following directory:
serverRoot
/slapd-
serverID
/
2.
Run the
ldif2db.pl
perl script.
For more information about using this perl script, refer to Netscape Directory
Server Configuration, Command, and File Reference.
Option
Description
-i
Specifies the full path name of the LDIF file(s) to be imported.
This option is required. You can use multiple
-i
arguments to
import more than one LDIF file at a time. When you import
multiple files, the server imports the LDIF files in the order in
which you specify them from the command line.
-n
Specifies the name of the database into which you are
importing the data.
CAUTION
This script overwrites the data in your database.
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...