Server User Manual

bak2db.pl (Restores a Database from Backup)
295
Section 7.4.10, “migrate-ds-admin.pl”
Section 7.4.7, “ldif2db.pl (Import)”
Section 7.4.8, “logconv.pl (Log Converter)”
Section 7.4.11, “ns-accountstatus.pl (Establishes Account Status)”
Section 7.4.12, “ns-activate.pl (Activates an Entry or Group of Entries)”
Section 7.4.13, “ns-inactivate.pl (Inactivates an Entry or Group of Entries)”
Section 7.4.14, “ns-newpwpolicy.pl (Adds Attributes for Fine-Grained Password Policy)”
Section 7.4.16, “remove-ds.pl”
Section 7.4.17, “repl-monitor.pl (Monitors Replication Status)”
Section 7.4.18, “schema-reload.pl (Reload Schema Files Dynamically)”
Section 7.4.19, “setup-ds.pl”
Section 7.4.20, “setup-ds-admin.pl”
Section 7.4.21, “verify-db.pl (Check for Corrupt Databases)”
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.
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 attribute under cn=config.
-j filename The name of the file containing the password.
-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.