Syntax, Options, Cl-dump.pl (dumps and decodes the changelog) – Red Hat 8.1 User Manual

Page 220: Note, For information on the equivalent perl script, see, Section 7.4.2, “cl-dump.pl (dumps and decodes the, Changelog)

Advertising
background image

Syntax

bak2db.pl [ -v ] -D rootdn { -w password | -w - | -j filename } -a backupDirectory [ -t
databaseType ] [ -n backend ]

Options

The script bak2db.pl creates an entry in the directory that launches this dynamic task. The entry is
generated based upon the values provided for each option.

Table 7.18. bak2db.pl Options

Option

Description

-a backupDirectory

The directory of the backup files.

-D rootdn

Gives the user DN with root permissions, such
as Directory Manager. The default is the DN of
the Directory Manager, which is read from the
nsslapd-root attribute under cn=config.

-j filename

The name of the file containing the password.

-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 -n
option to restore the entire directory.

-t databaseType

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

-v

Verbose mode.

-w password

The password associated with the user DN.

-w -

Prompts for the password associated with the
user DN.

7.4 .2. cl-dump.pl (Dumps and Decodes the Changelog)

Troubleshoots replication-related problems.

NOTE

cl-dum p.pl is in the /usr/bin directory.

Syntax

cl-dum p.pl [ -h host ] [ -p port ] [ -D bindDn ] [ -w bindPassword | -P bindCert ] [ -r replicaRoots
] [ -o outputFile ] [ -c ] [ -v ]

cl-dum p.pl -i changelogFile [ -o outputFile ] [ -c ] [ -v ]

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.

220

Chapter 7. Command-Line Scripts

Advertising