Red Hat Directory Server 8.0 Configuration, Command, and File Reference
• Section 4.13, “verify-db.pl (Check for Corrupt Databases)”
4.1. bak2db.pl (Restores a Database from Backup)
Restores a database from a backup.
Syntax.
bak2db.pl [ -v ] -D rootdn -w password [ -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.
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.
-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. Currently, the only
possible database type is ldbm.
-v Verbose mode.
-w password The password associated with the user DN.
Table 7.18. bak2db.pl Options
4.2. cl-dump.pl (Dumps and Decodes the Changelog)
Troubleshoots replication-related problems.
Syntax.
cl-dump.pl [ -h host ] [ -p port ] [ -D bindDn ] -w bindPassword | -P bindCert [ -r
Chapter 7. Command-Line Scripts
260