Bak2db (restores a database from backup), Syntax, Options – Red Hat 8.1 User Manual

Page 209: Cl-dump (dumps and decodes the changelog)

Advertising
background image

This section covers the following scripts:

Section 7.3.1, “bak2db (Restores a Database from Backup)”
Section 7.3.2, “cl-dump (Dumps and Decodes the Changelog)”
Section 7.3.3, “db2bak (Creates a Backup of a Database)”
Section 7.3.4, “db2ldif (Exports Database Contents to LDIF)”
Section 7.3.5, “db2index (Reindexes Database Index Files)”
Section 7.3.6, “dbverify (Checks for Corrupt Databases)”
Section 7.3.7, “ds_removal”
Section 7.3.8, “ldif2db (Import)”
Section 7.3.9, “ldif2ldap (Performs Import Operation over LDAP)”
Section 7.3.10, “monitor (Retrieves Monitoring Information)”
Section 7.3.12, “pwdhash (Prints Encrypted Passwords)”
Section 7.3.11, “repl-monitor (Monitors Replication Status)”
Section 7.3.13, “restart-slapd (Restarts the Directory Server)”
Section 7.3.14, “restoreconfig (Restores Administration Server Configuration)”
Section 7.3.15, “saveconfig (Saves Administration Server Configuration)”
Section 7.3.16, “start-slapd (Starts the Directory Server)”
Section 7.3.17, “stop-slapd (Stops the Directory Server)”
Section 7.3.18, “suffix2instance (Maps a Suffix to a Backend Name)”
Section 7.3.19, “vlvindex (Creates Virtual List View Indexes)”

Some of the shell scripts can be executed while the server is running. For others, the server must be
stopped. The description of each script below indicates whether the server must be stopped or if it can
continue to run while executing the script.

When a shell script has a Perl equivalent, there is a cross-reference to the section describing the
equivalent Perl script.

7.3.1. bak2db (Restores a Database from Backup)

Restores the database from the most recent archived backup. To run this script, the server must be
stopped.

Syntax

bak2db [ backupDirectory ] [ -n backend ]

Options

Table 7.4 . bak2db Options

Option

Description

backupDirectory

Gives the backup directory path.

-n backendInstance

Optional. 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.

For information on the equivalent Perl script, see

Section 7.4.1, “bak2db.pl (Restores a Database from

Backup)”

. For more information on restoring databases, see the "Populating Directory Databases"

chapter in the Red Hat Directory Server Administrator's Guide. For more information on using filesystem
replica initialization, see the "Managing Replication" chapter in the Red Hat Directory Server
Administrator's Guide
.

7.3.2. cl-dump (Dumps and Decodes the Changelog)

Troubleshoots replication-related problems. cl-dump is a shell script wrapper of cl-dump.pl to set
the appropriate library path.

Syntax

cl-dum p [ -h host ] [ -p port ] [ -D bindDn ] [[ -w bindPassword ] | [ -P bindCert ]] [ -r replicaRoots
] [ -o outputFile ] [ -c ] [ -v ]

cl-dum p [ -i changelogFile ] [ -o outputFile ] [ -c ]

Red Hat Directory Server 8.1 Configuration and Command Reference

209

Advertising