Perl Scripts
276 Red Hat Directory Server Configuration, Command, and File Reference • May 2005
ldif2db.pl (Import)
To run this script, the server must be running. The script creates an entry in the
directory that launches this dynamic task. The entry is generated based upon the
values you provide for each option. The
*
indicates that multiple occurrences are
allowed.
Syntax
-n backendInstance The instance to be exported.
-s includeSuffix Suffixes to be included or the subtrees to be included if -n
has been used.
-x excludeSuffix Suffixes to be excluded.
-a outputFile The filename of the output LDIF file.
-N Suppress printing sequential number.
-r Export replica.
-C Only the main db file is used.
-u Request that the unique id is not exported.
-U Request that the output LDIF is not folded.
-m Minimal base-64 encoding.
-o The output LDIF to be stored in one file by default with each
instance stored in instance_filename.
-1 Delete, for reasons of backward compatibility, the first line of
the LDIF file that gives the version of the LDIF standard.
-M Output LDIF is stored in multiple files.
Perl script:
ldif2db.pl [-v] -D rootdn -w password -n
backendInstance | {-s includeSuffix}* [{-x excludeSuffix}*]
[-O] [-c] [-g string] [-G namespaceId] {-i filename}*
Optio
n
Parameter Description