Red Hat Directory Server 8.0 Administrator's Guide

3. Select the backup from the Available Backups list, or enter the full path to a valid backup in
the Directory text box.
The Available Backups list shows all backups located in the default directory,
/var/lib/dirsrv/slapd-instance_name/bak/backup_directory.
1
backup_directory is the
directory of the most recent backup, in the form serverID-YYYY_MM_DD_hhmmss.
4. Click OK.
3.3.2. Restoring Your Database from the Command-Line
Restore databases from the command-line by using the following scripts:
Using the bak2db command-line script. This script requires the server to be shut down.
Using the bak2db.pl Perl script. This script works while the server is running.
3.3.2.1. Using the bak2db Command-Line Script
To restore the directory from the command-line, do the following:
1. If the Directory Server is running, stop it:
2
service dirsrv stop instance
2. Open the Directory Server instance directory:
cd /usr/lib/dirsrv/slapd-instance_name
3. Run the bak2db command-line script. The bak2db script requires the full path and name of
the input file.
bak2db
/var/lib/dirsrv/slapd-instance_name/bak/instance_name-2007_04_30_11_48_30
For more information about using this script, see the Directory Server Configuration,
Command, and File Reference.
3.3.2.2. Using bak2db.pl Perl Script
To restore the directory from the command-line, do the following while the server is running:
1. Open the Directory Server instance directory:
Restoring All Databases
127