![Netscape NETSCAPE DIRECTORY SERVER 6.02 Administrator'S Manual Download Page 154](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-02/netscape-directory-server-6-02_administrators-manual_1674673154.webp)
Backing Up and Restoring Data
154
Netscape Directory Server Administrator’s Guide • May 2002
where serverID is the name of your Directory Server and backup_name is the
name of the backup file.
4.
Click OK to restore your databases.
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:
/usr/netscape/servers/slapd-
serverID
where serverID is the name of your Directory Server.
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.
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.02
Page 1: ...Administrator s Guide Netscape Directory Server Version6 02 May 2002 ...
Page 16: ...16 Netscape Directory Server Administrator s Guide May 2002 ...
Page 20: ...20 Netscape Directory Server Administrator s Guide May 2002 ...
Page 74: ...Maintaining Referential Integrity 74 Netscape Directory Server Administrator s Guide May 2002 ...
Page 138: ...Using Referrals 138 Netscape Directory Server Administrator s Guide May 2002 ...
Page 432: ...Miscellaneous Tuning Tips 432 Netscape Directory Server Administrator s Guide May 2002 ...
Page 434: ...434 Netscape Directory Server Administrator s Guide May 2002 ...
Page 468: ...PTA Plug In Syntax Examples 468 Netscape Directory Server Administrator s Guide May 2002 ...
Page 488: ...488 Netscape Directory Server Administrator s Guide May 2002 ...
Page 528: ...Examples of LDAP URLs 528 Netscape Directory Server Administrator s Guide May 2002 ...