Red Hat Directory Server 8.0 Configuration, Command, and File Reference

db2bak.pl [ -v ] -D rootdn -w password [ -a dirName ]
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.
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.
-t The database type. Currently, the only
possible database type is ldbm.
-v Verbose mode.
-w password The password associated with the user DN.
Table 7.20. db2bak.pl Options
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 ] -D rootdn { -w password -j filename } [ -n backendInstance ] [ -t
attributeName{:indextypes(:mathingrules)} ] [ -T vlvAttributeName ]
Options.
The script db2index.pl creates an entry in the directory that launches this dynamic task. The
entry is generated based upon the values provided for each option.
Option Description
-D rootdn Gives the user DN with root permissions,
such as Directory Manager.
Chapter 7. Command-Line Scripts
262