EasyManua.ls Logo

Red Hat 8.1 - Db2 Bak (Creates a Backup of a Database); Db2 Ldif (Exports Database Contents to LDIF)

Default Icon
292 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Options
Without the -i option, the script must be run when the Directory Server is running from a location from
which the server's changelog directory is accessible.
Table 7.5. cl-dump Opt ions
Option Description
-c Dumps and interprets CSN only. This option can
be used with or without the -i option.
-D bindDn Specifies the Directory Server's bind DN. Defaults
to cn=Directory Manager if the option is
omitted.
-h host Specifies the Directory Server's host. T his
defaults to the server where the script is running.
-i changelogFile Specifies the path to the changelog file. If there is
a changelog file and if certain changes in that file
are base-64 encoded, use this option to decode
that changelog.
-o outputFile Specifies the path, including the filename, for the
final result. Defaults to ST DOUT if omitted.
-p port Specifies the Directory Server's port. T he default
value is 389.
-P bindCert Specifies the path, including the filename, to the
certificate database that contains the certificate
used for binding.
-r replicaRoots Specifies the replica-roots whose changelog to
dump. When specifying multiple roots, use
commas to separate roots. If the option is omitted,
all the replica roots will be dumped.
-v Prints the version of the script.
-w bindPassword Specifies the password for the bind DN.
For information on the equivalent Perl script, see Section 7.4.2, “cl-dump.pl (Dumps and Decodes the
Changelog)”.
7.3.3. db2bak (Creates a Ba ckup of a Dat abase)
Creates a backup of the current database contents. T his script can be executed while the server is still
running.
Syntax
db2bak [ backupDirectory ]
For information on the equivalent Perl script, see Section 7.4.3, “db2bak.pl (Creates a Backup of a
Database)”.
7.3.4 . db2 ldif (Exports Data base Content s to LDIF)
Exports the contents of the database to LDIF. T his script can be executed while the server is still
running, except with the -r option. To export the replication state information, shut down the server first,
then run db2ldif with -r.
For information on the equivalent Perl script, see Section 7.4.5, “db2ldif.pl (Exports Database Contents to
LDIF)”.
For the shell scripts, the script runs the ns-slapd command-line utility with the db2ldif keyword. Ellipses
(...) indicate that multiple occurrences are allowed.
Syntax
db2ldif [[ -n backendInstance ] | [ -s includeSuffix ]] [ [ -x excludeSuffix ] ] [ -r ] [ -C ] [ -u ] [ -U
] [ -m ] [ M ] [ -a outputFile ] [ -1 ] [ -N ] [ -E ]
Options
210 Chapter 7. Command-Line Scripts

Table of Contents