Shell Scripts
Chapter 8 Command-Line Scripts 265
Syntax
Options
NOTE
ldif2db
supports LDIF version 1 specifications. You can load an
attribute using the
:<
URL specifier notation; for example:
jpegphoto:< file:///tmp/myphoto.jpg
Although the official notation requires three
///
, the use of one
/
is
tolerated. For further information on the LDIF format, see chapter
4, “Managing Directory Entries,” in the Red Hat Directory Server
Administrator’s Guide.
Shell script:
ldif2db -n backendInstance | {-s includeSuffix}* [{-x
excludeSuffix}*] {-i ldifFile}* [-O] [-g string] [-G
namespaceId] [-E]
Optio
n
Parameter Description
-n backendInstance Instance to be imported. Ensure that you specify an instance
that corresponds to the suffix contained by the LDIF file
because, otherwise, the data contained by the database is
deleted, and the import fails.
-s includeSuffix Suffixes to be included or to specify the subtrees to be
included if -n has been used.
-x excludeSuffix Suffixes to be excluded.
-i ldifFile Names of the input LDIF files. When you import multiple
files, they are imported in the order in which you specify
them on the command-line.
-O Request that only the core db is created without attribute
indexes.