Server User Manual

db2ldif.pl (Exports Database Contents to LDIF)
299
Options
To run this script, the server must be running, and either the -n or -s option is required.
Option Description
-1 Deletes, for reasons of backward compatibility,
the first line of the LDIF file that gives the version
of the LDIF standard.
-a outputFile Gives the filename of the output LDIF file.
-C Uses only the main database file.
-D rootdn Gives the user DN with root permissions, such
as Directory Manager.
-E Decrypts encrypted data during export. This
option is used only if database encryption is
enabled.
-j filename The name of the file containing the password.
-m Sets minimal base-64 encoding.
-M Uses multiple files for storing the output LDIF,
with each instance stored in instance filename
(where filename is the filename specified for -a
option).
-n backendInstance Gives the instance to be exported.
-N Suppresses printing sequential numbers.
-r Exports the information required to initialize a
replica when the LDIF is imported.
The LDIF file which is created with db2ldif.pl
can be imported using ldif2db.pl. When it
is imported, if the -r option was used, than the
database is automatically initialized as a replica.
See Section 7.4.7, “ldif2db.pl (Import)” for
information on importing an LDIF file.
-s includeSuffix Gives suffixes to be included or the subtrees to
be included if -n has been used.
-u Requests that the unique ID is not exported.
-U Requests that the output LDIF is not folded.
-v Verbose mode.
-w password Gives the password associated with the user DN.
-w - Prompts for the password associated with the
user DN.
-x excludeSuffix Gives suffixes to be excluded.
Table 7.22. db2ldif.pl Options