ns-slapd and slapd.exe Command-Line Utilities
for Exporting Databases
db2ldif
Exports the contents of the database to LDIF.
Shell syntax (UNIX)
ns-slapd db2ldif -D slapd-serverID -a output_file [-d debug_level] [-n
backend_instance] [-r] [-s include_suffix] [-x exclude_suffix] [-N] [-u] -[U]
where
the full path to the
Batch file syntax (Windows)
slapd.exe db2ldif -D slapd-serverID -a output_file [-d debug_level] [-n
backend_instance] [-r] [-s include_suffix] [-x exclude_suffix] [-N] [-u] [-U]
NOTE
Options
-a
-d
-D
serverID is the location of your server configuration directory. Enter
slapd-
serverID directory.
slapd-
You must specify either the
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.
Specifies the debug level to use during the db2ldif runtime. For further
information see "nsslapd-errorlog-level (Error Log Level)" on page 52.
Specifies the server configuration directory that contains the configuration
information for the export process. You must specify the full path to the
slapd-serverID directory.
Appendix A
ns-slapd and slapd.exe Command-Line Utilities for Exporting Databases
or the
-n
-s
Using the ns-slapd and slapd.exe Command-Line Utilities
option.
251