Restoring A Single Database - Netscape DIRECTORY SERVER 6.02 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

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.
/usr/netscape/servers/slapd-
where serverID is the name of your Directory Server.
Run the
2.
bak2db.pl
For more information on using this perl script, refer to Netscape Directory
Server Configuration, Command, and File Reference.
Two examples of performing an import using
example, you need to run the script from the
directory):
Windows batch file:
..\bin\slapd\admin\bin\perl bak2db.pl -D "cn=Directory Manager"
-w secret
-a \usr\netscape\servers\slapd-dirserver\bak\mybak_20010701103056
UNIX shell script:
bak2db.pl -D "cn=Directory Manager" -w secret
-a /usr/netscape/servers/slapd-dirserver/bak/mybak_20010701103056
The following table describes the
Option Name
Description
Defines the full path and name of the input file.
-a
Specifies the DN of the administrative user.
-D
Specifies the password of the administrative user.
-w

Restoring a Single Database

To restore a single database:
At the command prompt, change to the following directory:
1.
cd /usr/netscape/servers/slapd-
where serverID is the name of your Directory Server.
serverID
perl script.
bak2db.pl
serverID
Backing Up and Restoring Data
follow (as shown in the
bak2db.pl
..\bin\slapd\admin\bin\perl
options used in the examples:
Chapter 4
Populating Directory Databases
155

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents