ns-slapd and slapd.exe Command-Line Utilities
for Exporting Databases
db2ldif
Exports the contents of the database to LDIF.
Syntax
Shell script (UNIX):
Batch file (Windows):
For
slapd-serverID
enter the full path. You must also specify either the
Options
Option
-a
-d
-D
-N
ns-slapd db2ldif -D configDir -a outputFile
[-d debugLevel] [-n backendInstance ] [ -r] [-s
includeSuffix] [-x excludeSuffix] [-N] [-u] -[U]
slapd.exe db2ldif -D configDir -a outputFile
[-d debugLevel] [-n backendInstance] [-r] [-s
includeSuffix] [-x excludeSuffix] [-N] [-u] [-U]
, which is the location of your server configuration directory,
Parameter
Description
outputFile
Defines the output file in which the server saves the exported
LDIF. This file is stored by default in the directory where the
command-line utility resides.
debugLevel
Specifies the debug level to use during the db2ldif runtime.
For further information see "nsslapd-errorlog-level (Error Log
Level)" on page 56.
configDir
Specifies the location of the server configuration directory that
contains the configuration information for the export process.
You must specify the full path to the slapd-serverID
directory.
Specifies that entry IDs are not to be included in the LDIF
output. The entry IDs are necessary only if the db2ldif
output is to be used as input to db2index.
Appendix A
ns-slapd and slapd.exe Command-Line Utilities for Exporting Databases
-n
Using the ns-slapd and slapd.exe Command-Line Utilities
or the
option.
-s
275