![Netscape NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR Administrator'S Manual Download Page 159](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-1-administrator/netscape-directory-server-6-1-administrator_administrators-manual_1674675159.webp)
Backing Up and Restoring Data
Chapter
4
Populating Directory Databases
159
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
serverRoot
/slapd-
serverID
2.
If the server is running, type the following to shut it down:
./stop-slapd
3.
Change to the directory containing the backup you want to restore.
4.
Copy all of the files to the directory containing the database you want to
overwrite with your backup. For example, you might type the following:
cp
backup_file
../db
/database_name
Restoring Databases that Include Replicated
Entries
If you are restoring a database that is supplying entries to other servers, then you
must reinitialize all of the servers that receive updates from the restored database
(for example, consumer servers, hub servers, and, in multi-master replication
environments, other supplier servers). The change log associated with the restored
Option
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.
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...