Backing Up and Restoring Data
164
Red Hat Directory Server Administrator’s Guide • May 2005
bak2db.pl -D "cn=Directory Manager" -w secret
-a /opt/redhat-ds/servers/slapd-dirserver/bak/mybak_2001070110
3056
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.
Stop the Directory Server if it is running by typing the following:
./stop-slapd
3.
Restore the backend from your
/bak
archives with the
bak2db
script, using
the
-n
parameter to specify the backend instance name. For example:
./bak2db /opt/redhat-ds/slapd-
serverID
/bak/
backup_file
-n
userRoot
4.
Restart the Directory Server by typing the following:
./start-slapd
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 changelog associated with the restored
database will be erased during the restore operation. A message will be logged to
the supplier servers’ log files indicating that reinitialization is required.If you are
restoring a database containing data received from a supplier server, then one of
two situations can occur:
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 DIRECTORY SERVER 7.1
Page 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Page 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Page 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...