![Netscape NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR Administrator'S Manual Download Page 153](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-1-administrator/netscape-directory-server-6-1-administrator_administrators-manual_1674675153.webp)
Exporting Data
Chapter
4
Populating Directory Databases
153
2.
Expand the Data tree in the left navigation pane. Expand the suffix maintained
by the database you want to export. Select the database under the suffix that
you want to export.
3.
Right-click the database and select Export Database.
You can also select Export Database from the Object menu.
The Export Partition dialog box is displayed.
4.
In the “LDIF file” field, enter the full path to the LDIF file, or click Browse to
locate it on your machine.
When the Browse button is not enabled, by default the file is stored in the
serverRoot
/slapd-
serverID
/ldif
directory.
5.
Click OK to export the file.
Exporting to LDIF From the Command Line
You can export your database to LDIF using the
db2ldif
command-line script.
This script exports all of your database contents or a part of their contents to LDIF
when the server is running or stopped.
To export to LDIF from the command line:
1.
From the command line, change to the following directory:
serverRoot
/slapd-
serverID
/
2.
Run the
db2ldif
command line script.
For more information about using this script, refer to Netscape Directory Server
Configuration, Command, and File Reference.
Two examples of performing an import using
db2bak
follow:
Windows batch file:
db2ldif -n database1 -a output.ldif -s "dc=example,dc=com" -s
"o=NetscapeRoot"
UNIX shell script:
db2ldif -n database1 -a output.ldif -s "dc=example,dc=com" -s
"o=NetscapeRoot"
The following table describes the
db2ldif
options used in the examples:
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...