Server User Manual

cl-dump (Dumps and Decodes the Changelog)
281
Option Description
to restore a single database; it is not necessary
to use the n option to restore the entire directory.
Table 7.4. bak2db Options
For information on the equivalent Perl script, see Section 7.4.1, “bak2db.pl (Restores a Database from
Backup)”. For more information on restoring databases, see the "Populating Directory Databases"
chapter in the Red Hat Directory Server Administrator's Guide. For more information on using
filesystem replica initialization, see the "Managing Replication" chapter in the Red Hat Directory Server
Administrator's Guide.
7.3.2. cl-dump (Dumps and Decodes the Changelog)
Troubleshoots replication-related problems. cl-dump is a shell script wrapper of cl-dump.pl to set
the appropriate library path.
Syntax
cl-dump [ -h host ] [ -p port ] [ -D bindDn ] [[ -w bindPassword ] | [ -P bindCert ]] [ -r
replicaRoots ] [ -o outputFile ] [ -c ] [ -v ]
cl-dump [ -i changelogFile ] [ -o outputFile ] [ -c ]
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.
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. This
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 STDOUT if omitted.
-p port Specifies the Directory Server's port. The 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