Restoring Your Database From The Command-Line - Red Hat DIRECTORY SERVER 7.1 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

serverRoot/slapd-serverID/bak/backup_name
where
backup_name
Click OK to restore your databases.
4.

Restoring Your Database from the Command-Line

You can restore your databases from the command-line by using the following
scripts:
Using the
bak2db
shut down.
Using the
bak2db.pl
Using the bak2db Command-Line Script
To restore your directory from the command-line while the server is shut down:
At the command prompt, change to the following directory:
1.
serverRoot/slapd-serverID
If the server is running, type the following to stop it:
2.
./stop-slapd
Run the
command-line script.
3.
bak2db
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
bak2db
/opt/redhat-ds/servers/slapd-dirserver/bak/bak_20010701103056
The
script requires that you define the full path and name of the input file.
bak2db
Using bak2db.pl Perl Script
To restore your directory from the command-line while the server is running:
At the command prompt, change to the following directory:
1.
serverRoot/slapd-serverID
Run the
2.
bak2db.pl
For more information on using this Perl script, refer to Red Hat Directory Server
Configuration, Command, and File Reference.
This example performs an import using the
is the name of the backup file.
command-line script. This script requires the server to be
Perl script. This script works while the server is running.
Perl script.
Backing Up and Restoring Data
UNIX shell script:
bak2db
UNIX shell script:
bak2db.pl
Chapter 4
Populating Directory Databases
163

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents