Consolidating tapes using bpduplicate
I was wondering if someone had already written a script to consolidate partially used tapes onto another tape.
I have instances where only a small portion of a tape was used yet the expiration dates are far in the future. I'd like to be able to basically say something like:
duptap -from abc123 -to xyz789
and have all the backup images (from 1 to n) on tape abc123 to copied to the end of tape xyz789.
Before I start scripting this I thought I'd check if someone had already done it.
The new tape would become the primary copy and then I would remove the old images (freeing up the old tape) for use again.
You cannot use bpduplicate to specify one media id as source and another as destination.
The destination can only be specified as a Storage Unit and a pool.
So, to ensure that one destination tape is used until full, create a new pool to be specified as destination and add MPF (Maximum number of partially full media) attribute for the pool as 1.
If you do not have a Scratch pool, add Unassigned media to this pool.