Promoting a copy to a primary copy

Each backup is assigned a primary copy. NetBackup uses the primary copy to satisfy restore requests. The first backup image that is created successfully by a NetBackup policy is the primary backup. If the primary copy is unavailable and a duplicate copy exists, select a copy of the backup and set it to be the primary copy.

NetBackup restores from the primary backup, and Vault duplicates from the primary backup. If your Vault profile performs duplication, you can designate one of the duplicates as the primary. In most circumstances, the copy remaining in the robot is the primary backup. When a primary backup expires, the next backup (if it exists) is promoted to primary automatically.

To promote a backup copy to a primary copy

  1. In the NetBackup Administration Console, expand NetBackup Management > Catalog.

  2. Set up the search criteria for the image you want to promote to a primary copy. Be sure that you indicate a copy in the Copies field and not Primary Copy. Click Search Now.

  3. Select the image you want to promote.

  4. Click Actions > Set Primary Copy.

    After the image is promoted to the primary copy, the Primary Status column immediately reads Yes.

To promote a copy to a primary copy for many backups

You can also promote a copy to be a primary copy for many backups using the bpchangeprimary command. For example, the following command promotes all copies on the media that belongs to the SUN volume pool. The copies must have been created after August 8, 2010:

bpchangeprimary -pool SUN -sd 08/01/2010

The following command promotes copy 2 of all backups of client_a. The copies must have been created after January 1, 2010:

bpchangeprimary -copy 2 -cl client_a -sd 01/01/2010

More information is available in NetBackup Commands.

To use bpduplicate to promote a backup copy to a primary copy

  1. Enter the following command:

    Install_path\VERITAS\NetBackup\bin\admincmd\bpduplicate
    		-npc pcopy -backupid bid
    

    Where:

    Install_path is the directory where NetBackup is installed.

    pcopy is the copy number of the new primary copy.

    bid is the backup identifier as shown in the Images on Media report.

    Find the volume that contains the duplicate backup by using the Images on Media report.

  2. Specify the backup ID that is known (and also the client name if possible to reduce the search time).

    See Images on Media report columns.

    The bpduplicate command writes all output to the NetBackup logs. Nothing appears in the command window.

    After the duplicate copy is promoted to the primary copy, use the client interface on the client to restore files from the backup.

    For instructions, see the online Help in the Backup, Archive, and Restore client interface.

More Information

Searching for backup images