Table 7.19. cl-dump.pl command options, Db2bak.pl (creates a backup of a database), Syntax – Red Hat 8.1 User Manual

Page 221: Options, Db2index.pl (creates and generates indexes), For information on the equivalent perl script, see, Section 7.4.3, “db2bak.pl (creates a backup of a, Database), Section 7.4.4, “db2index.pl (creates and generates, Indexes)

Advertising
background image

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 -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. 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
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.

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 ]

Options

The script db2bak.pl creates an entry in the directory that launches this dynamic task. The entry is
generated based upon the values provided for each option. Currently, the only possible database type is
ldbm.

Table 7.20. db2bak.pl Options

Option

Description

-a dirName

The directory where the backup files will be stored.
The
/var/lib/dirsrv/slapd-instance_name/bak
directory is used by default. The backup file is
named according to the year-month-day-hour
format (YYYY_MM_DD_hhmmss).

-D rootdn

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.

-t

The database type. Currently, 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 .4 . db2index.pl (Creates and Generates Indexes)

Creates and generates the new set of indexes to be maintained following the modification of indexing
entries in the cn=config configuration file.

Red Hat Directory Server 8.1 Configuration and Command Reference

221

Advertising