Perl Scripts
Chapter 8 Command-Line Scripts 273
Options
The script
bak2db.pl
creates an entry in the directory that launches this dynamic
task. The entry is generated based upon the values you provide for each option.
db2bak.pl (Create backup of database)
Creates a backup of the database.
Syntax
Options
The script
db2bak.pl
creates an entry in the directory that launches this dynamic
task. The entry is generated based upon the values you provide for each option.
Currently, the only possible database type is
ldbm
.
Optio
n
Parameter Description
-D rootdn The user DN with root permissions, such as Directory
Manager. The default is the DN of the Directory Manager,
which is read from the nsslapd-root attribute under
cn=config.
-w password The password associated with the user DN.
-a backupDirectory The directory of the backup files.
-v Verbose mode.
-t databaseType The database type.
Currently, the only possible database
type is
ldbm
.
-n backendInstance Specifies the backend name, such as userRoot, which is
being restored. This option is only used for filesystem replica
initialization or to restore a single database; it is not
necessary to use the n option to restore the entire directory.
Perl script:
db2bak.pl [-v] -D rootdn -w password [-a dirName]