Red Hat Directory Server 8.0 Configuration, Command, and File Reference
• Section 3.9, “pwdhash (Prints Encrypted Passwords)”
• Section 3.11, “repl-monitor (Monitors Replication Status)”
• Section 3.12, “restart-slapd (Restarts the Directory Server)”
• Section 3.13, “restoreconfig (Restores Administration Server Configuration)”
• Section 3.14, “saveconfig (Saves Administration Server Configuration)”
• Section 3.15, “start-slapd (Starts the Directory Server)”
• Section 3.16, “stop-slapd (Stops the Directory Server)”
• Section 3.17, “suffix2instance (Maps a Suffix to a Backend Name)”
• Section 3.18, “vlvindex (Creates Virtual List View Indexes)”
Some of the shell scripts can be executed while the server is running. For others, the server
must be stopped. The description of each script below indicates whether the server must be
stopped or if it can continue to run while executing the script.
When a shell script has a Perl equivalent, there is a cross-reference to the section describing
the equivalent Perl script.
3.1. bak2db (Restores a Database from Backup)
Restores the database from the most recent archived backup. To run this script, the server must
be stopped.
Syntax.
bak2db backupDirectory [ -n backend ]
Options.
Option Description
backupDirectory Gives the backup directory path.
-n backendInstance Optional. 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.
Table 7.4. bak2db Options
Chapter 7. Command-Line Scripts
244