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 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_2001070110305
6
UNIX shell script:
bak2db.pl -D "cn=Directory Manager" -w secret
-a /usr/netscape/servers/slapd-dirserver/bak/mybak_2001070110305
6
The following table describes the
Option
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 serverRoot/slapd-serverID
perl script.
bak2db.pl
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
159
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers