Chapter 4. Populating Directory Databases
104
The LDIF file in this case would be
/var/lib/dirsrv/slapd-
instance_name
/
ldif/
instance_name
-example-2007_04_30_112718.ldif
, using the name of the suffix
rather than the database.
If the suffix specified is a root suffix, such as
dc=example,dc=com
, then it is not necessary to
specify the database or to use the
-n
option.
For more information about using this script, see the
Directory Server Configuration, Command,
and File Reference
.
Option
Description
-n
Specifies the name of the database from which
the file is being exported.
-s
Specifies the suffix or suffixes to include in
the export. If the suffix is a root suffix, such as
dc=example,dc=com
, then the
-n
option is not
required. There can be multiple
-s
arguments.
-a
Defines the output file to which Directory
Server exports the LDIF. This file must be an
absolute path. If the
-a
option is not given,
the output ldif is stored in the the
/var/lib/
dirsrv/slapd-
instance_name
/ldif
directory and is automatically named
serverID
-
database-
YYYY_MM_DD_hhmmxx
.ldif
with the
-n
option or
serverID-firstsuffixvalue-
YYYY_MM_DD_hhmmxx
.ldif
with the
-s
option.
-r
Specifies that the exported database is a
consumer replica. In this case, the appropriate
settings and entries are included with the LDIF to
initialize the replica when the LDIF is imported.
-E
Decrypts an encrypted database so it can be
exported.
Table 4.4. db2ldif Options
4.3. Backing up and Restoring Data
Databases can be backed up and restored using the Directory Server Console or a command-line
script.
•
Section 4.3.1, “Backing up All Databases”
•
Section 4.3.2, “Backing up the dse.ldif Configuration File”
•
Section 4.3.3, “Restoring All Databases”
•
Section 4.3.4, “Restoring a Single Database”
•
Section 4.3.5, “Restoring Databases That Include Replicated Entries”
•
Section 4.3.6, “Restoring the dse.ldif Configuration File”
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...