HP UX Red Hat Direry Server Software manual Backing up the dse.ldif Configuration File

Models: UX Red Hat Direry Server Software

1 638
Download 638 pages 23.73 Kb
Page 146
Image 146

Chapter 4. Populating Directory Databases

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_namedirectory.

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_namedirectory 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.

126

Page 146
Image 146
HP UX Red Hat Direry Server Software manual Backing up the dse.ldif Configuration File, Restoring All Databases