When trying to restore from a backup that has multiple copies, NetBackup will request the Primary Copy.
If that copy is not available, the restore will fail. This article explains how to restore from a tape that is not the original Primary Copy.
1. You can restore via the command line and use the bprestore command with the -copy switch (valid in NetBackup Version 6.0 Maintenance Pack 5 (MP5) and onwards).
/usr/openv/netbackup/bin/bprestore -copy 2 -s 04/01/06 06:00:00 -e 04/10/06 18:00:00 /usr/user1/file1
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 change which copy is considered the Primary Copy:
/usr/openv/netbackup/bin/admincmd/bpduplicate -npc 2 -backupid bob_1216710249
install_path\VERITAS\NetBackup\bin\admincmd\bpduplicate -npc 2 -backupid bob_1216710249
/usr/openv/netbackup/ALT_RESTORE_COPY_NUMBER(Replacing '2' with the desired copy number)
Note: Be sure to remove or rename the ALT_RESTORE_COPY_NUMBER file once the restore has completed. Failure to do so 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.
If you attempt to preview which tape is required in the GUI, it will still display the Primary Copy's Media ID. The restore will, however, proceed using the copy number stored in ALT_RESTORE_COPY_NUMBER
Was this content helpful?
Rating submitted. Please provide additional feedback (optional):