Exporting To Ldif From The Command Line - Netscape DIRECTORY SERVER 6.01 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

Expand the Data tree in the left navigation pane. Expand the suffix maintained
2.
by the database you want to export. Select the database under the suffix that
you want to export.
Right-click the database and select Export Database.
3.
You can also select Export Database from the Object menu.
The Export Partition dialog box is displayed.
In the "LDIF file" field, enter the full path to the LDIF file, or click Browse to
4.
locate it on your machine.
When the Browse button is not enabled, by default the file is stored in the
/usr/netscape/servers/slapd-
Click OK to export the file.
5.

Exporting to LDIF From the Command Line

You can export your database to LDIF using the
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:
From the command line, change to the following directory:
1.
/usr/netscape/servers/slapd-
where serverID is the name of your directory server.
Run the
2.
db2ldif
For more information about using this script, refer to Netscape Directory Server
Configuration, Command, and File Reference.
Windows NT 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
ServerID
serverID
command line script.
db2ldif
directory.
/ldif
command-line script.
db2ldif
/
options used in the examples:
Chapter 4
Populating Directory Databases
Exporting Data
147

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents