bprecover

bprecover — recover selected NetBackup related catalogs

SYNOPSIS

<admin_dir_path>bprecover -wizard [-copy number]

<admin_dir_path>bprecover -r -nbdb [-priority number] [-copy number] [-L output_file]

<admin_dir_path>bprecover -l | -r -vxss -p policy_name [-v]

On Windows systems, <admin_dir_path> is <install_path>\NetBackup\bin\admincmd\

DESCRIPTION

The bprecover command initiates the NetBackup utility for restoring the NetBackup catalogs. It recovers the catalogs that were backed up by using the procedures that are described in the NetBackup Administrator's Guide. Use bprecover only if catalogs were destroyed on disk.

bprecover has three modes:

  • -wizard lets you recover the entire NetBackup catalog or the catalog image and configuration files by using a recovery wizard.

  • NBDB recovery (-r -nbdb) lets you recover the NetBackup relational database and the BMR database, if BMR is configured.

  • Symantec Product Authentication and Authorization Service recovery (-r -vxss) lets you recover the data associated with this service.

You must have administrator privileges to run this command.

OPTIONS

-copy number

Specifies the number of the copy of the catalog backup image to be used for the recovery operation. This option restores from a non-primary copy of the catalog backup image.

-l

Used with -vxss to list the header information for the VxSS backup.

-L output_file

Reports the results of the recovery in the specified output file.

-nbdb

Used with the -r option during catalog recovery procedures to recover and resynchronize the NetBackup relational databases (NBDBs) and the BMR database (BMRDB), if BMR is configured.

For complete catalog recovery procedures, see the Disaster Recovery chapter of the NetBackup Troubleshooting Guide.

-p policy_name

Specifies a policy name for the VxSS backup.

-priority number

Used with -nbdb to recover the relational databases or with -vxss to recover the VxSS backup.

-r

Recovers the images from the specified policy name. Three modes of recovery are available with -r:

-v

Selects the verbose mode when used with the -vxss option.

-vxss

When -vxss is used with the -p policy_name option, you can recover the Symantec Product Authentication and Authorization Service data. The image is recovered from the following location:

Windows systems:  
install_path\NetBackup\db\NBU_VSSDB_IMAGE\policy_name
-wizard

Enables a user to perform the same functions from a command line that are present on the recovery wizard. For example, a user can specify the full pathname to the catalog disaster recovery file or recover the entire NetBackup catalog. The wizard prompts you for the catalog disaster recovery file.

The -copy option lets you select the number of the copy

Note:

The operator must be logged on locally to the master server that is to be recovered.

EXAMPLES

EXAMPLE 1

This example recovers the entire NetBackup catalog or the catalog image and configuration files. On Windows, a series of screens takes you through the recovery process. On UNIX or Linux, a series of prompts takes you through the recovery process.

# bprecover -wizard

The Disaster Recovery chapter of the Troubleshooting Guide describes each step of the recovery process.

EXAMPLE 2

This example recovers the NetBackup relational databases and reports the results of the recovery in the recovery.rpt file.

# bprecover -r -nbdb -L recovery.rpt

The Disaster Recovery chapter of the Troubleshooting Guide describes each step of the recovery process.

ERRORS

If any errors occur during the recover operation, NetBackup writes error messages to one of the following: stderr (UNIX and Linux systems) or the MS-DOS command window when you run the bprecover command (Windows systems).

Also, debug logs are accumulated in the following directory path:

On Windows, <install_path>\NetBackup\logs\admin

On UNIX and Linux, /usr/openv/netbackup/logs/admin

SEE ALSO

NetBackup Troubleshooting Guide for information on disaster recovery.