Backing Up and Restoring Data
Chapter
4
Populating Directory Databases
155
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:
/usr/netscape/servers/slapd-
serverID
where serverID is the name of your Directory Server.
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):
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
bak2db.pl
options used in the examples:
Restoring a Single Database
To restore a single database:
1.
At the command prompt, change to the following directory:
cd /usr/netscape/servers/slapd-
serverID
where serverID is the name of your Directory Server.
Option Name
Description
-a
Defines the full path and name of the input file.
-D
Specifies the DN of the administrative user.
-w
Specifies the password of the administrative user.
Содержание NETSCAPE DIRECTORY SERVER 6.02
Страница 1: ...Administrator s Guide Netscape Directory Server Version6 02 May 2002 ...
Страница 16: ...16 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 20: ...20 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 40: ...Starting the Server in Referral Mode 40 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 74: ...Maintaining Referential Integrity 74 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 138: ...Using Referrals 138 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 258: ...Compatibility with Earlier Releases 258 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 274: ...Setting Resource Limits Based on the Bind DN 274 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 330: ...Solving Common Replication Conflicts 330 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 374: ...Attribute Name Quick Reference Table 374 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 390: ...Configuring LDAP Clients to Use SSL 390 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 412: ...Monitoring Database Link Activity 412 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 432: ...Miscellaneous Tuning Tips 432 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 434: ...434 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 468: ...PTA Plug In Syntax Examples 468 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 488: ...488 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 502: ...Storing Information in Multiple Languages 502 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 522: ...Searching an Internationalized Directory 522 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 528: ...Examples of LDAP URLs 528 Netscape Directory Server Administrator s Guide May 2002 ...