ns-slapd Command-Line Utilities for Restoring and Backing up Databases
Appendix A Using the ns-slapd Command-Line Utilities 297
ns-slapd Command-Line Utilities for Restoring and
Backing up Databases
ldif2db
Imports LDIF files to the database.
Syntax
For
configDir
, which is the location of your server configuration directory, enter the
full path. ldifFile is the name of the file containing the LDIF to be imported. You can
find a demo LDIF file under the
serverRoot/slapd-serverID/ldif
directory. You
must also specify either the
-n
or the
-s
option.
Options
Shell script: ns-slapd ldif2db -D configDir -i ldifFile
[-d debugLevel] [-g string] [-n backendInstance] -O
[-s includeSuffix] [-x excludeSuffix]
Optio
n
Parameter Description
-d debugLevel Specifies the debug level to use during runtime. For further
information, see “nsslapd-errorlog-level (Error Log Level),”
on page 58.
-D configDir Specifies the location of the server configuration directory that
contains the configuration information for the import process.
You must specify the full path to the slapd-serverID
directory.