04-28-2017 01:07 PM
Hello All,
I have lists of backup ids ( about 1000) that i want to duplicate to tapes. Then expire the copies on disk once duplication successfuly completed. Can any one please help with quick way to achieve this task?
Thank you
04-28-2017 01:36 PM
Hi Damisi,
These backups that you want duplicate were made over some SLP? If not I guess that you can create a Vault Job to duplicate these images from disk to tape and expire then.
05-01-2017 08:01 AM
If you have a list of backupid on your system, it is pretty simple to script the bpduplicate command to make copies.
Depending on your l33t skilz, you may be able to automaticlly expire the original as well, I prefer to do the expiration separately after confirming the copy worked. better safe than sorry.
You will need to know some stuff! document these values:
# copy number for source ( and how many copies you want to make )
# storage unit
# volume pool
# retention ( this is the number of the retention, not the #of days/weeks/years )
# Media Owner
Here is an example:
bpduplicate -cn 1 -number_copies 1 -dstunit media2-LTO5 -dp Infinite_Pool -altreadhost media2 -backupid backup_1361095315 -rl 9 -owner All_Servers &
make one copy of copy #1 of backup_1361095315 on media server media2 writing to media2 LTO5 tapes retention level 9 (infinite) to pool Infinite_Pool ( on unix the & puts it in the background, so you can run multiple at once - otherwise the script runs one at a time... )
BUT - it can generate a tonne of jobs, so you have to manage your destination drives. You may want to run them in small batches, depending on size and number of drives. Maybe twice as many backupid as drives - you want to wrap up the duplication in time to start the next one.
05-01-2017 08:03 AM
Having said that - if these are all from a group that is easy to select in the GUI catalog, it is just as easy to use that.
The GUI does NOT allow alt read host, so be aware it will read using the original media server ...
05-01-2017 12:00 PM
You may also try Bidfile option, where you copy the list of the backup ids and initiate a duplication job. After duplication you can expire the disk copy of the image.
command: bpduplicate -dstunit destination_storage_unit -dp tape_pool -owner *ANY* -rl 8(as per defined in your environment) -fail_on_error 0 -set_primary 0 -number_copies 1 -cn 2(copy number) -L "log_file_path" -Bidfile your_image_bilfile.bid -M master
Note: bidfile gets deleted once you executive the command, no matter if command is success or failure, so make sure you have copy of your image ids. Also try -p (preview) option which will show if info given in command is correct or wrong without starting duplication job. Once you are sure you can run the command without -p and your duplication should kick off.
05-02-2017 12:10 AM
I like the -bidfile option. There are quite a number of discussions that includes examples:
https://vox.veritas.com/t5/NetBackup/Duplicate-tape-to-offsite-using-bpduplicate/td-p/360644
https://vox.veritas.com/t5/NetBackup/understanding-bpduplicate-command/td-p/748246
https://vox.veritas.com/t5/NetBackup/bpduplicate-for-tapes/td-p/161377
https://vox.veritas.com/t5/NetBackup/understanding-bpduplicate/td-p/773010
https://vox.veritas.com/t5/NetBackup/Consolidating-tapes-using-bpduplicate/td-p/712894
05-02-2017 05:48 AM
The bidfile gets deleted when you do this, so keep copies!
And if you start it and then you have to stop it for some reason, you have to edit the original to remove the ones that worked and copy it again and start over. It is REALLY easy to inadvertantly destroy your only copy of the Backupid, and have to regenerate them all over - so check your work!