Promoting a copy to a primary copy on UNIX/Linux

Article:HOWTO33348  |  Created: 2010-10-28  |  Updated: 2011-03-10  |  Article URL http://www.symantec.com/docs/HOWTO33348
Article Type
How To


Environment

Subject


Promoting a copy to a primary copy on UNIX/Linux

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.

There are three different ways to promote a copy to a primary copy:

Promote a backup copy to a primary copy using search criteria

See “To promote a backup copy to a primary copy”.

Promote a copy to a primary copy for many backups using the bpchangeprimary command

See “To promote a copy to a primary copy for many backups”.

Promote a backup copy to a primary copy using the bpduplicate command

See “To use bpduplicate to promote a backup copy to a primary copy”.

To promote a backup copy to a primary copy

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

  2. In the right pane, 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.

    See About searching for backup images on UNIX/Linux

  3. Select the image you want to promote.

  4. On the Actions menu, 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, 2009:

    bpchangeprimary -pool SUN -sd 08/01/2009

    In the next example, the following command promotes copy 2 of all backups of client_a. The copies must have been created after January 1, 2009:

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

More information is available in the NetBackup Commands Reference Guide.

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

  1. Enter the following command:

    /usr/openv/netbackup/bin/admincmd/bpduplicate -npc pcopy
    	-backupid bid

    Where:

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

    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.

See About the Catalog utility on UNIX/Linux

See Duplicating backup images on UNIX/Linux

See About importing backup images on UNIX/Linux


Legacy ID



v41087634_v46435089


Article URL http://www.symantec.com/docs/HOWTO33348


Terms of use for this information are found in Legal Notices