Exporting to LDIF from the Command-Line
103
2. Expand the
Data
tree in the left navigation pane. Expand the suffix, and select the database under
the suffix.
3. Right-click the database, and select
Export Database
.
Alterntaively, select
Export Database
from the
Object
menu.
The
Export Partition
dialog box opens.
4. In the
LDIF file
field, enter the full path to the LDIF file, or click
Browse
.
When the
Browse
button is not enabled, the file is stored in the default directory,
/var/lib/
dirsrv/slapd-
instance_name
/ldif
.
1
5. Click
OK
to export the file.
4.2.3. Exporting to LDIF from the Command-Line
Databases can be exported to LDIF using the
db2ldif
command-line script. This script exports all of
the database contents or a part of their contents to LDIF when the server is running or stopped.
NOTE
To export a database that has been encrypted, you must use the
-E
option with the
script. See
Section 3.2.3.5, “Exporting and Importing an Encrypted Database”
for more
information.
NOTE
If the database being exported is a replica, then the server must be stopped before the
export script is run and the export script must have the
-r
.
To export to LDIF from the command-line, do the following:
1. Open the Directory Server instance directory:
cd /usr/lib/dirsrv/slapd-
instance_name
2. Run the
db2ldif
command-line script.
db2ldif -n database1 -a /export/output.ldif
This exports the database contents to
/export/output.ldif
. If the
-a
option is not specified,
then the database information is exported to
/var/lib/dirsrv/slapd-
instance_name
/
ldif/
instance_name
-database1-
date
.ldif
. For example:
db2ldif -n database1
It is also possible to specify which suffixes to export, using the
-s
option. For example:
db2ldif -s "dc=example,dc=com"
Содержание 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 ...