Chapter 7. Command-Line Scripts
278
•
Section 7.3.8, “ldif2db (Import)”
•
Section 7.3.9, “ldif2ldap (Performs Import Operation over LDAP)”
•
Section 7.3.10, “monitor (Retrieves Monitoring Information)”
•
Section 7.3.12, “pwdhash (Prints Encrypted Passwords)”
•
Section 7.3.11, “repl-monitor (Monitors Replication Status)”
•
Section 7.3.13, “restart-slapd (Restarts the Directory Server)”
•
Section 7.3.14, “restoreconfig (Restores Administration Server Configuration)”
•
Section 7.3.15, “saveconfig (Saves Administration Server Configuration)”
•
Section 7.3.16, “start-slapd (Starts the Directory Server)”
•
Section 7.3.17, “stop-slapd (Stops the Directory Server)”
•
Section 7.3.18, “suffix2instance (Maps a Suffix to a Backend Name)”
•
Section 7.3.19, “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.
7.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
Summary of Contents for 8.1
Page 8: ...viii ...
Page 14: ...xiv ...
Page 16: ...2 ...
Page 250: ...236 ...
Page 334: ...320 ...
Page 372: ...358 ...