![Netscape NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR Скачать руководство пользователя страница 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):
Содержание NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR
Страница 1: ...Administrator s Guide Netscape Directory Server Version6 1 August 2002...
Страница 20: ...20 Netscape Directory Server Administrator s Guide August 2002...
Страница 24: ...24 Netscape Directory Server Administrator s Guide August 2002...
Страница 44: ...Starting the Server in Referral Mode 44 Netscape Directory Server Administrator s Guide August 2002...
Страница 78: ...Maintaining Referential Integrity 78 Netscape Directory Server Administrator s Guide August 2002...
Страница 142: ...Using Referrals 142 Netscape Directory Server Administrator s Guide August 2002...
Страница 162: ...Enabling and Disabling Read Only Mode 162 Netscape Directory Server Administrator s Guide August 2002...
Страница 278: ...Setting Resource Limits Based on the Bind DN 278 Netscape Directory Server Administrator s Guide August 2002...
Страница 336: ...Troubleshooting Replication Related Problems 336 Netscape Directory Server Administrator s Guide August 2002...
Страница 396: ...Configuring LDAP Clients to Use SSL 396 Netscape Directory Server Administrator s Guide August 2002...
Страница 418: ...Monitoring Database Link Activity 418 Netscape Directory Server Administrator s Guide August 2002...
Страница 440: ...Miscellaneous Tuning Tips 440 Netscape Directory Server Administrator s Guide August 2002...
Страница 442: ...442 Netscape Directory Server Administrator s Guide August 2002...
Страница 478: ...PTA Plug In Syntax Examples 478 Netscape Directory Server Administrator s Guide August 2002...
Страница 498: ...498 Netscape Directory Server Administrator s Guide August 2002...
Страница 512: ...Storing Information in Multiple Languages 512 Netscape Directory Server Administrator s Guide August 2002...
Страница 532: ...Searching an Internationalized Directory 532 Netscape Directory Server Administrator s Guide August 2002...
Страница 538: ...Examples of LDAP URLs 538 Netscape Directory Server Administrator s Guide August 2002...