Red Hat 8.1 사용자 설명서
bak2db.pl (Restores a Database from Backup)
295
•
•
•
•
•
•
•
•
•
•
•
•
•
7.4.1. bak2db.pl (Restores a Database from Backup)
Restores a database from a backup.
Syntax
bak2db.pl
[ -v ] -D rootdn { -w password | -w - | -j filename } -a backupDirectory [ -t
databaseType
] [ -n backend ]
Options
The script bak2db.pl creates an entry in the directory that launches this dynamic task. The entry is
generated based upon the values provided for each option.
generated based upon the values provided for each option.
Option
Description
-a backupDirectory
The directory of the backup files.
-D rootdn
Gives 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
as Directory Manager. The default is the DN of
the Directory Manager, which is read from the
nsslapd-root
attribute under cn=config.
-j filename
The name of the file containing the password.
-n backendInstance
Specifies the backend name, such as
userRoot
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.
to restore a single database; it is not necessary
to use the -n option to restore the entire
directory.