Red Hat Directory Server 8.0 Configuration, Command, and File Reference
Command-Line Scripts
This chapter provides information on the scripts for managing Red Hat Directory Server, such
as backing-up and restoring the database. Scripts are a shortcut way of executing the ns-slapd
interface commands that are documented in Appendix A, Using the ns-slapd Command-Line
Utilities.
1. Finding and Executing Command-Line Scripts
Most scripts are located in the /usr/lib/dirsrv/slapd-instance_name directory, though a
few are located in the /usr/bin directory. The exact locations are listed in Section 2,
“Command-Line Scripts Quick Reference”.
When scripts request either a directory name or a filename, always provide the absolute path.
The scripts assume the dse.ldif file is located in the /etc/dirsrv/slapd-instance_name
directory.
2. Command-Line Scripts Quick Reference
The following shell and Perl scripts are located in the
/usr/lib/dirsrv/slapd-instance_name directory.
Shell Script Description
bak2db Restores the database from the most recent
archived backup.
db2bak Creates a backup of the current database
contents.
db2ldif Exports the contents of the database to LDIF.
db2index Reindexes the database index files.
dbverify Checks backend database files.
ldif2db Imports LDIF files to the database. Runs the
ns-slapd command-line utility with the ldif2db
keyword.
ldif2ldap Performs an import operation over LDAP to
the Directory Server.
monitor Retrieves performance monitoring information
using the ldapsearch command-line utility.
restart-slapd Restarts Directory Server.
restoreconfig Restores by default the most recently saved
Administration Server configuration to
NetscapeRoot partition.
saveconfig Saves Administration Server configuration
stored in the NetscapeRoot database to the
Chapter 7.
241