cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert the vaulted tapes to the Primary copy?

zippy
Level 6
 I need to convert 100 Vaulted tapes to be the primary for a DR test.

6.5.2

any Idea?
3 REPLIES 3

Stumpr2
Level 6
NAME
bpchangeprimary - promote a copy of a backup to be the pri-
mary copy

SYNOPSIS
/usr/openv/netbackup/bin/admincmd/bpchangeprimary -copy
number | -pool volume_pool | -group volume_group [-id
backup_id] [-M master_server]

/usr/openv/netbackup/bin/admincmd/bpchangeprimary -copy
number | -pool volume_pool | -group volume_group [-sl
schedule_name] [-pn policy_name] [-st schedule_type]
[-pt policy_type] [-cl client_name] [-kw keyword] [-sd
date] [-ed date] [-M master_server]

DESCRIPTION
The bpchangeprimary command lets you change which copy is
the primary copy for a set of backup images. You can choose
the copy to be promoted to primary by specifying a copy
number, volume pool, or volume group. You can apply several
optional criteria to identify the backup images to be
affected.

The primary copy of a backup is the copy used by a restore
process. Ensure that the primary copy is accessible for
restore. For instance, if one copy of a backup was sent off
site, change the primary copy to be the copy that remains on
site.

The bpchangeprimary command finds all backups that match the
specified criteria, and for those images that it finds,
updates their copy number to primary.

If you use the -copy option, the specified copy number
becomes the primary copy. If you use the -group or -pool
option, the process identifies all media IDs that belong to
the specified volume group or volume pool. It then changes
all copies that reside on those media to primary.

Any authorized user can initiate this command.

For more information about NetBackup authorization, refer to
the NetBackup Security and Encryption Guide.


# bpchangeprimary -help
Error - Unknown option specified = -help

Allows changing one copy per image, of a batch of images, to primary.
Usage: bpchangeprimary -copy number | -pool volume_pool | -group volume_group
[-id backup_id] [-M master_server]
bpchangeprimary -copy number | -pool volume_pool | -group volume_group
[-sl schedule_name] [-pn policy_name]
[-st schedule_type] [-pt policy_type]
[-cl client_name]
[-kw keyword]
[-sd mm/dd/yyyy [ HH:MM:SS ] ] [-ed mm/dd/yyyy [ HH:MM:SS ] ]
[-M master_server]

zippy
Level 6
I just found that is the Vault pdf

is there a what to take a list of all the 100 tapes I have and run a script for all these tapes?

Bob you wouldnt have an real exmple?

zippy
Level 6
Bob

check this link

http://bannaych.blogspot.com/2006/03/netbackup-master-server-dr.html

I wonder if

I run this on the DR server will i make every tape that was vaulted the primary?

Here is an example to make all backups that have copy #2 into primary:

/usr/openv/netbackup/bin/admincmd/bpchangeprimary -copy 2


The default starting date for image acquisition is January 1, 1970.
Continue? y/n (n)y
1 images changed.