
Chapter 4. Populating Directory Databases
108
For more information on using this Perl script, see the
Directory Server Configuration, Command,
and File Reference
.
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.
4.3.4. Restoring a Single Database
It is possible to restore a single database through the command-line, but not in the Directory Server
Console. To restore a single database, do the following:
1. Stop the Directory Server if it is running.
2
service dirsrv stop
instance
2. Restore the backend from the
/var/lib/dirsrv/slapd-
instance_name
/bak
archives with
the
bak2db
script, using the
-n
parameter to specify the database name. For example:
bak2db /var/lib/dirsrv/slapd-
instance_name
/bak/
backup_file
-n userRoot
3. Restart the Directory Server.
service dirsrv start
instance
NOTE
If the Directory Server fails to start, remove the database transaction log files in
/
var/lib/dirsrv/slapd-
instance_name
/db/log.###
, then retry starting the
server.
4.3.5. Restoring Databases That Include Replicated Entries
If a database that supplies entries to other servers is restored, 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 a database containing data
received from a supplier server is restored, then one of two situations can occur:
• Changelog entries have not yet expired on the supplier server.
If the supplier's changelog has not expired since the database backup was taken, then restore
the local consumer and continue with normal operations. This situation occurs only if the backup
was taken within a period of time that is shorter than the value set for the maximum changelog
age attribute,
nsslapd-changelogmaxage
, in the
cn=changelog5,cn=config
entry. For
Summary of Contents for DIRECTORY SERVER 8.0
Page 18: ...xviii ...
Page 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Page 30: ...12 ...
Page 112: ...94 ...
Page 128: ...110 ...
Page 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Page 224: ...206 ...
Page 324: ...306 ...
Page 334: ...316 ...
Page 358: ...340 ...
Page 410: ...392 ...
Page 420: ...402 ...
Page 444: ...426 ...
Page 454: ...436 ...
Page 464: ...446 ...
Page 484: ...466 ...
Page 512: ...494 ...
Page 522: ...504 ...