
Backing Up and Restoring Data
Chapter 4
Populating Directory Databases
159
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
Red Hat Directory Server
Configuration, Command, and File Reference
.
This example performs an import using the
db2ldif
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:
Backing Up and Restoring Data
You can back up and restore your databases using the Directory Server Console or
a command-line script.
NOTE
To export a database that has been encrypted, you must use the
-E
option with the script. See “Exporting and Importing an Encrypted
Database,” on page 102, for more information.
Option
Description
-n
Specifies the name of the database from which the file is being
exported.
-a
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.
-s
Specifies the suffix or suffixes to include in the export. You
may use multiple
-s
arguments.
Содержание DIRECTORY SERVER 7.1
Страница 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Страница 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Страница 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 278: ...Compatibility with Earlier Releases 278 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 374: ...Troubleshooting Replication Related Problems 374 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 478: ...Using the Management Information Base 478 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 545: ...About Windows Sync Chapter 18 Windows Sync 545 Figure 18 1 Active Directory Directory Server Synchronization Process ...
Страница 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 586: ...Storing Information in Multiple Languages 586 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 606: ...Searching an Internationalized Directory 606 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...