HP-UX Directory Server 8.1 configuration, command, and file reference

Table 7-18 bak2db.pl options (continued)
DescriptionOption
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 -n option to restore the entire directory.
-n backendInstance
The database type. The only possible database type is ldbm.-t databaseType
Verbose mode.-v
The password associated with the user DN.
-w password
7.4.2 cl-dump.pl (Dumps and decodes the changelog)
Troubleshoots replication-related problems.
NOTE:
The cl-dump.pl script is in the /opt/dirsrv/bin directory.
Syntax
cl-dump.pl [ -h host] [ -p port] [ -D bindDn] [ -w bindPassword | -P bindCert ] [ -r
replicaRoots] [ -o outputFile] [ -c] [ -v ]
cl-dump.pl -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.
Table 7-19 cl-dump.pl command options
DescriptionOption
Dumps and interprets change sequence numbers (CSN) only. This option can be used with
or without the -i option.
-c
Specifies the Directory Server's bind DN. Defaults to cn=Directory Manager if the option
is omitted.
-D bindDn
Specifies the Directory Server's host. Defaults to the server where the script is running.
-h host
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.
-i changelogFile
Specifies the path, including the file name, for the final result. Defaults to STDOUT if omitted.-o outputFile
Specifies the Directory Server's port. The default value is 389.-p port
Specifies the path, including the file name, to the certificate database that contains the
certificate used for binding.
-P bindCert
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.
-r replicaRoots
Prints the version of the script.-v
Specifies the password for the bind DN.
-w bindPassword
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