Table 7-18 bak2db.pl options (continued)

OptionDescription

-n backendInstance Specifies the backend name, such as userRoot, which is being restored. This option is only used for filesystem replica initialization or to restore a single database; it is not necessary to use the -noption to restore the entire directory.

-tdatabaseType

The database type. The only possible database type is ldbm.

-v

Verbose mode.

 

 

-wpassword

The password associated with the user DN.

 

 

7.4.2 cl-dump.pl (Dumps and decodes the changelog)

Troubleshoots replication-related problems.

NOTE:

The cl-dump.plscript is in the /opt/dirsrv/bin directory.

Syntax

cl-dump.pl[ -hhost] [ -pport] [ -DbindDn] [ -wbindPassword -PbindCert ] [ -rreplicaRoots] [ -ooutputFile] [ -c] [ -v ]

cl-dump.pl-ichangelogFile [ -ooutputFile] [ -c]

Options Without the -ioption, 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-19 cl-dump.pl command options

Option

Description

-c

Dumps and interprets change sequence numbers (CSN) only. This option can be used with

 

or without the -ioption.

 

 

-DbindDn

Specifies the Directory Server's bind DN. Defaults to cn=Directory Manager if the option

 

is omitted.

 

 

-hhost

Specifies the Directory Server's host. Defaults to the server where the script is running.

 

 

-ichangelogFile

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.

 

 

-ooutputFile

Specifies the path, including the file name, for the final result. Defaults to STDOUT if omitted.

 

 

-pport

Specifies the Directory Server's port. The default value is 389.

 

 

-PbindCert

Specifies the path, including the file name, to the certificate database that contains the

 

certificate used for binding.

 

 

-rreplicaRoots

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.

 

 

-wbindPassword

Specifies the password for the bind DN.

 

 

7.4.3 db2bak.pl (Creates a backup of a database)

Creates a backup of the database.

Syntax

db2bak.pl [ -v ] -D rootdn { -w password -w - -j filename } [ -a dirName] [ -t db_type

]

7.4 Perl scripts 227