How to change a duplicate copy to be the primary copy

Article:TECH30156  |  Created: 2004-01-23  |  Updated: 2014-01-15  |  Article URL http://www.symantec.com/docs/TECH30156
Article Type
Technical Solution


Issue



How to change a duplicate copy to be the primary copy


Solution



There are two ways to do this. One is through the GUI and the other is from the command line interface. In both of the examples below, an original backup will exist along with one duplicated copy.  

Here is how to change the primary copy from the GUI:

In the VERITAS NetBackup (tm) administration console, select Catalog as shown in the screenshot below.

 

Now select Verify from the Action dropdown menu. Under the Search for Images section, select the media ID or path to the backup image. Next, make sure that the date range is accurate for the backup image. You can also specify the "Copies," "Policy," "Client," and "Type of Backup" which will help narrow down the search for the backup image to set as primary. Once you have made these changes, click the "Search Now" button and it will display a list of images that match your criteria.  Here is an example of what it will look like:

 

Now select the backup image you would like to set as primary and from the Actions menu at the top of the window, select Set Primary Copy as shown below:

 

This backup image should now be the primary copy and used for any restore request.
Here is how to change the primary copy from the command line interface:
 
1.  Run the following command: 
<install_path>\NetBackup\bin\admincmd\bpduplicate -npc <new_primary_copy> -backupid <backup_id>
 
2.  To find out what the <new_primary_copy> should be, you will need to run the following command:
<install_path>\NetBackup\bin\admincmd\bpimmedia -client <client_name> -d <start_date_range> -e <end_Date_range> -U
 
3.  This command will tell you the backup ID along with the copy number.  Here is an example of this command and the output:
<install_path>\NetBackup\bin\admincmd>bpimmedia -client tmiller2 -d 1/20/2004 -e 1/25/2004 -U
 
Backup-ID            Policy     Type  RL  Files   C  E  T  PC  Expires
Copy Frag    KB Type Density FNum      Off       Host       DWO MPX Expires
    RL MediaID
--------------------------------------------------------------------------------
tmiller2_1074870010  Hatch_Smal FULL  1   35      N  N  R  2   09:00 02/06/2004
1   1    42858 Disk -       -         -         hatch      -   N   09:00 02/06/
2004 1  "C:\Program Files\VERITAS\NetBackup\disk\tmiller2_1074870010_C1_F1"
2   1    42858 RMed 8mm     2         74143     hatch      0   N   09:00 02/06/
2004 1  8MM003
tmiller2_1074816695  Hatch_Smal FULL  1   35      N  N  R  1   18:11 02/05/2004
1   1    42858 Disk -       -         -         hatch      -   N   18:11 02/05/
2004 1  "C:\Program Files\VERITAS\NetBackup\disk\tmiller2_1074816695_C1_F1"

The copy number is the important part because this is what you are going to use as the new primary copy.  Once you have the copy number that you would like to make the primary, just specify that number after the -npc switch in the command.  Here is an example of what the command should look like with the information given above:
 
4.  <install_path>\NetBackup\bin\admincmd\bpduplicate -npc 2 -backupid tmiller2_1074870010
Copy number 2 is now your primary copy and will be used for restore requests.
 


Legacy ID



265334


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


Terms of use for this information are found in Legal Notices