![Netscape NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR Administrator'S Manual Download Page 158](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-1-administrator/netscape-directory-server-6-1-administrator_administrators-manual_1674675158.webp)
Backing Up and Restoring Data
158
Netscape Directory Server Administrator’s Guide • August 2002
Restoring Your Database From the Command Line
You can restore your databases from the command line by using the following
scripts:
•
Using the
bak2db
command-line script. This script requires the server to be
shut down.
•
Using the
bak2db.pl
perl script. This script works while the server is running.
Using the bak2db Command-Line Script
To restore your directory from the command line while the server is shut down:
1.
At the command prompt, change to the following directory:
serverRoot
/slapd-
serverID
2.
If the server is running, type the following to stop it:
./stop-slapd
3.
Run the
bak2db
command-line script.
For more information about using this script, refer to Netscape Directory Server
Configuration, Command, and File Reference.
Two examples of performing an import using
bak2db
follow:
Windows batch file:
bak2db.bat
\usr\netscape\servers\slapd-dirserver\bak\bak_20010701103056
UNIX shell script:
bak2db /usr/netscape/servers/slapd-dirserver/bak/bak_20010701103056
The
bak2db
script requires that you define the full path and name of the input file.
Using bak2db.pl Perl Script
To restore your directory from the command line while the server is running:
1.
At the command prompt, change to the following directory:
serverRoot
/slapd-
serverID
2.
Run the
bak2db.pl
perl script.
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
bak2db.pl
follow (as shown in the
example, you need to run the script from the
..\bin\slapd\admin\bin\perl
directory):
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR
Page 1: ...Administrator s Guide Netscape Directory Server Version6 1 August 2002...
Page 20: ...20 Netscape Directory Server Administrator s Guide August 2002...
Page 24: ...24 Netscape Directory Server Administrator s Guide August 2002...
Page 142: ...Using Referrals 142 Netscape Directory Server Administrator s Guide August 2002...
Page 440: ...Miscellaneous Tuning Tips 440 Netscape Directory Server Administrator s Guide August 2002...
Page 442: ...442 Netscape Directory Server Administrator s Guide August 2002...
Page 478: ...PTA Plug In Syntax Examples 478 Netscape Directory Server Administrator s Guide August 2002...
Page 498: ...498 Netscape Directory Server Administrator s Guide August 2002...
Page 538: ...Examples of LDAP URLs 538 Netscape Directory Server Administrator s Guide August 2002...