Red Hat Directory Server 8.0 Administrator's Guide

The backup directory where the server saves the backed up databases can be specified with
the script. If a directory is not specified, the backup file is stored in
/var/lib/dirsrv/slapd-instance_name/bak.
1
By default, the backup directory is named
with the Directory Server instance name and the date of the backup
(serverID-YYYY_MM_DD_hhmmss).
3.2. Backing up the dse.ldif Configuration File
Directory Server automatically backs up the dse.ldif configuration file. When the Directory
Server is started, the directory creates a backup of the dse.ldif file automatically in a file
named dse.ldif.startOK in the /etc/dirsrv/slapd-instance_name directory.
When the dse.ldif file is modified, the file is first backed up to a file called dse.ldif.bak in
the /etc/dirsrv/slapd-instance_name directory before the directory writes the modifications
to the dse.ldif file.
3.3. Restoring All Databases
The following procedures describe restoring all of the databases in the directory using the
Directory Server Console and from the command-line.
NOTE
While restoring databases, the server must be running. However, the databases
will be unavailable for processing operations during the restore.
3.3.1. Restoring All Databases from the Console
If the databases become corrupted, restore data from a previously generated backup using the
Directory Server Console. This process consists of stopping the server and then copying the
databases and associated index files from the backup location to the database directory.
CAUTION
Restoring databases overwrites any existing database files.
To restore databases from a previously created backup, do the following:
1. In the Directory Server Console, select the Tasks tab.
2. Click Restore Directory Server.
The Restore Directory dialog box is displayed.
Chapter 4. Populating Directory Databases
126