Backing Up All Databases From The Command-Line - Red Hat DIRECTORY SERVER 7.1 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

Enter the full path of the directory where you want to store the backup file in
3.
the Directory text box, or click "Use default," and the server provides a name
for the backup directory.
If you are running the Console on the same machine as the directory, you can
also click Browse to locate a local directory.
If you choose to use the default, the backup files will be placed in the following
location:
serverRoot/slapd-serverID/bak/backup_directory
The
backup_directory
file. By default, the backup directory name contains the time and date the
backup was created (
Click OK to create the backup.
4.

Backing Up All Databases from the Command-Line

You can back up your databases from the command-line using the
command-line script. This script works when the server is running or when the
server is stopped.
You cannot back up the configuration information using this backup method. For
information on backing up the configuration information, refer to "Backing Up the
dse.ldif Configuration File," on page 162.
To back up your directory from the command-line using the
At the command prompt, change to the following directory:
1.
serverRoot/slapd-serverID
Run the
command-line script.
2.
db2bak
For more information about using this script, refer to Red Hat Directory Server
Configuration, Command, and File Reference.
This example performs an import using the
db2bak /opt/redhat-ds/servers/slapd-dirserver/bak/bak_2001070110
3056
You can specify the backup directory and output file where the server saves the
exported LDIF file. If you do not specify a directory and output file, the directory
will store the file by default in the directory where the command-line script resides.
By default, the backup file is named according to the year-month-day-hour format
(
YYYY_MM_DD_hhmmss
variable names a directory using the name of the backup
YYYY_MM_DD_hhmmss
).
Backing Up and Restoring Data
).
db2bak
UNIX shell script:
db2bak
Chapter 4
Populating Directory Databases
db2bak
script:
161

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents