Perl Scripts
Chapter
8
Command-Line Scripts
237
ldif2db.pl (Import)
To run this Perl script the server must be running. This 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.
Syntax
Options
-a
File name of the output LDIF file.
-s
Suffix(es) to be included or to specify the subtree(s) to be included if
-n
has
been used.
-x
Suffix(es) to be excluded.
-m
Minimal base64 encoding.
-o
Output LDIF to be stored in one file by default with each instance stored in
instance_file name.
-r
Export replica.
-u
Request that the unique id is not exported.
-C
Only the main db file is used.
-N
Suppress printing sequential number.
-U
Request that the output LDIF is not folded.
-v
Verbose mode.
-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 (Both)
ldif2db.pl [-v] -D rootdn -w password -n backend_instance | {-s
includesuffix}* [{-x excludesuffix}*] [-O] [-c] [-g string] [-G
namespace_id] {-i file name}*
-D
User DN with root permissions, such as Directory Manager.
-w
Password associated with the user DN.
-n
Instance to be imported.