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

-adirName

The directory where the backup files will be stored. The

 

/var/opt/dirsrv/slapd-instance_name/bakdirectory is used by default. The

 

backup file is named according to the year-month-day-hour format (YYYY_MM_DD_hhmmss).

 

 

-Drootdn

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-rootattribute under cn=config.

 

 

-jfilename

The name of the file containing the password.

 

 

-t

The database type. Currently, the only possible database type is ldbm.

 

 

-v

Verbose mode.

 

 

-wpassword

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.

Syntax

db2index.pl [ -v]-Drootdn { -wpassword -w - -jfilename } -nbackendInstance [-tattributeName(:indextypes(:mathingrules))] [ -TvlvAttributeName ]

Options The db2index.pl script 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-21 db2index.pl options

Option

Description

-Drootdn

Gives the user DN with root permissions, such as Directory Manager.

 

 

-jfilename

The name of the file containing the password.

 

 

-nbackendInstance

Gives the instance to be indexed. If the instance is not specified, the

 

script reindexes all instances.

 

 

-t

Gives the name of the attribute to be indexed. If omitted, all the indexes

attributeName{:indextypes(:mathingrules)}

defined for the specified instance are generated. Optionally, this can

 

include the index type (eq, pres, sub, approx) and a matching rule

 

OID.

 

 

-TvlvAttributeName

Gives the names of the VLV attributes to be reindexed. The name is the

 

VLV index object's common name in cn=config.

 

 

-v

Verbose mode.

 

 

-wpassword

Gives the password associated with the user DN.

 

 

-w -

Prompts for the password associated with the user DN.

 

 

7.4.5 db2ldif.pl (Exports database contents to LDIF)

Exports the contents of the database to LDIF. This script creates an entry in the directory that launches this dynamic task. The entry is generated based upon the values provided for each option. Ellipses indicate that multiple occurrences are allowed.

Syntax

228 Command-line scripts