Exporting To Ldif From The Command-Line; Backing Up And Restoring Data - Red Hat DIRECTORY SERVER 7.1 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

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.
NOTE
To export to LDIF from the command-line:
From the command-line, change to the following directory:
1.
Run the
2.
For more information about using this script, refer to Red Hat Directory Server
Configuration, Command, and File Reference.
This example performs an import using the
db2ldif -n database1 -a output.ldif -s "dc=example,dc=com" -s
The following table describes the
Option
-n
-a
-s

Backing Up and Restoring Data

You can back up and restore your databases using the Directory Server Console or
a command-line script.
To export a database that has been encrypted, you must use the
option with the script. See "Exporting and Importing an Encrypted
Database," on page 102, for more information.
serverRoot/slapd-serverID
command-line script.
db2ldif
"o=NetscapeRoot"
Description
Specifies the name of the database from which the file is being
exported.
Defines the output file in which the server saves the exported
LDIF. This file is stored by default in the directory where the
command-line script resides.
Specifies the suffix or suffixes to include in the export. You
may use multiple -s arguments.
db2ldif
UNIX shell script:
db2ldif
options used in the examples:
db2ldif
Chapter 4
Backing Up and Restoring Data
command-line script.
-E
Populating Directory Databases
159

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTORY SERVER 7.1 - ADMINISTRATOR and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Directory server 7.1

Table of Contents