There are several ways to restore from a backup that is not the primary copy, depending on which is most convenient for your environment:
1. You can restore via the command line and use the bprestore command with the -copy switch (from NetBackup Version 6.0 Maintenance Pack 5 (MP5) and onwards).
e.g to restore files from copy 2, which are backups of file1 that were performed between 04/01/2006 06:00:00 and 04/10/2006 18:00:00:
On UNIX:
/usr/openv/netbackup/bin/bprestore -copy 2 -s 04/01/06 06:00:00 -e 04/10/06 18:00:00 /usr/user1/file1
On Windows:
install_path\VERITAS\NetBackup\bin\bprestore -copy 2 -s 04/01/06 06:00:00 -e 04/10/06 18:00:00 C:\user1\file1
2. You can promote the copy you have to become the new primary copy
a) Via the Command line using the bpduplicate command with the -npc and -backupid switch:
e.g to restore files from copy 2, where the backup id is bob_1216710249
On UNIX:
/usr/openv/netbackup/bin/admincmd/bpduplicate -npc 2 -backupid bob_1216710249
On Windows:
install_path\VERITAS\NetBackup\bin\admincmd\bpduplicate -npc 2 -backupid bob_1216710249
b) Via the GUI:
1. Go to the Catalog section of the GUI.
2. Select 'verify' and the top right the copy number of the current image you wish to use.
3. For the Date/Time Range From: value, enter the Start Date: used in the Backup, Archive and Restore GUI
4. For the Date/Time Range To: value, enter the End Date: used in the Backup, Archive and Restore GUI
5. Click Search Now
6. Right click on image you wish to restore from and click 'Set primary copy'.
Now when you go back to Restore GUI you can restore as normal and it will default to this copy.
3. If you have several images you wish to restore from alternate copies (for example in a disaster recovery situation), it is quicker to create the file ALT_RESTORE_COPY_NUMBER, which only contains the number of the copy you want to use. Once the file is in place, use the BAR GUI as normal, and it will use the copy number stored in this file.
On UNIX:
To restore using the NetBackup Administration console:
1. Create the following text file on the Master Server.
/usr/openv/netbackup/ALT_RESTORE_COPY_NUMBER
2. Enter the copy number to use as a single line of text within this file.
3. Remove the ".txt" extension from the file
4. Then restore from the Backup, Archive and Restore section of the NetBackup Administration console.
5. Once the restore is complete then move or rename the ALT_RESTORE_COPY_NUMBER file so the primary copy will be used for all future restores.
On Windows:
To restore using the NetBackup Administration console:
1. Create the following text file on the Master Server.
<install_dir>\VERITAS\NetBackup\ALT_RESTORE_COPY_NUMBER
2. Enter the copy number to use as a single line of text within this file.
3. Remove the ".txt" extension from the file
4. Then restore from the Backup, Archive and Restore section of the NetBackup Administration console.
5. Once the restore is complete then move or rename the ALT_RESTORE_COPY_NUMBER file so the primary copy will be used for all future restores.
Note: Be sure to remove or rename the ALT_RESTORE_COPY_NUMBER file once the restore has completed. Failure to do this will result in the backup copy number listed in this file being used for all future restores. This can result in failures when the copy number does not exist or is not available for restore.
Also, when using this final option, if you attempt to preview which tape is required through the GUI, it will still show the primary copy's Media ID, however when the restore actually takes place it will request the tape containing the copy number specified