Chapter 7. Command-Line Scripts
284
NOTE
ldif2db
supports LDIF version 1 specifications. An attribute can also be loaded using
the :< URL specifier notation; for example:
jpegphoto:< file:///tmp/myphoto.jpg
Although the official notation requires three
///
, the use of one
/
is accepted. For further
information on the LDIF format, see the "Managing Directory Entries" chapter in the
Red
Hat Directory Server Administrator's Guide
.
Syntax
ldif2db
[[ -n
backendInstance
] | [ [ -s
includeSuffix
] ...]] [ -x
excludeSuffix
] [ [ -i
ldifFile
] ] [ -O ] [ -g
string
] [ -G
namespaceId
] [ -E ]
Options
Option
Description
-c
Merges chunk size.
-E
Encrypts data during import. This option is used
only if database encryption is enabled.
-g
string
Generates a unique ID. Type
none
for no unique
ID to be generated and
deterministic
for the
generated unique ID to be name-based.
By default, a time-based unique ID is generated.
When using the
deterministic
generation to
have a name-based unique ID, it is also possible
to specify the namespace for the server to use,
as follows:
-g deterministic
namespace_id
namespace_id
is a string of characters in the
format
00-xxxxxxxx-xxxxxxxx-xxxxxxxx-
xxxxxxxx
.
Use this option to import the same LDIF file into
two different Directory Servers and the contents
of both directories should have the same set
of unique IDs. If unique IDs already exist in the
LDIF file being imported, then the existing IDs
are imported to the server, regardless of the
options specified.
-G
namespaceId
Generates a namespace ID as a name-based
unique ID. This is the same as specifying the
-g
deterministic
option.
Summary of Contents for 8.1
Page 8: ...viii ...
Page 14: ...xiv ...
Page 16: ...2 ...
Page 250: ...236 ...
Page 334: ...320 ...
Page 372: ...358 ...