Backing up All Databases

database contents and associated index files to a backup location. A backup can be performed while the server is running.

To back up databases from the Directory Server Console, do the following:

1.Select the Tasks tab.

2.Click Back Up Directory Server.

The Backup Directory dialog box opens.

3.Enter the full path of the directory to store the backup file in the Directory text box, or click Use default, and the server provides a name for the backup directory.

If the Console is running on the same machine as the directory, click Browse to select a local directory.

With the default location, the backup files are placed in /var/lib/dirsrv/slapd-instance_name/bak. 1 By default, the backup directory name

contains the name of the server instance and the time and date the backup was created (instance_name-YYYY_MM_DD_hhmmss).

4.Click OK to create the backup.

3.1.2. Backing up All Databases from the Command-Line

Databases can be backed up from the command-line using the db2bak command-line script. This script works when the server is running or when the server is stopped.

Configuration information cannot be backed up using this backup method. For information on backing up the configuration information, refer to Section 3.1.2, “Backing up All Databases from the Command-Line”.

To back up the directory from the command-line using the db2bak script, do the following:

1.Open the Directory Server instance directory:

cd /usr/lib/dirsrv/slapd-instance_name

2.Run the db2bak command-line script.

db2bak /var/lib/dirsrv/slapd-instance_name/bak/instance_name-2007_04_30_16_27_56

For more information about using this script, see the Directory Server Configuration, Command,

and File Reference.

125

Page 145
Image 145
HP UX Red Hat Direry Server Software Backing up All Databases from the Command-Line, Click Back Up Directory Server, 125