Backup to Tape - Job is waiting for Tape

Discussions specific to tape backups

Re: Backup to Tape - Job is waiting for Tape

Veeam Logoby kawiMTF » Tue Apr 12, 2016 10:08 am

Hello everyone

This topic is about nearly the same issue as my post here: powershell-f26/tape-handling-with-script-script-partial-working-t33312.html#p189392

Long time ago since i had this issue. And i don't really like to dig out old threads. But today we found a possible solution and i think that this hint will perhaps help someone.

Code: Select all
Add-PSSnapin VeeamPSSnapin
Get-VBRTapeDrive -Name "Tape0" | Start-VBRTapeInventory -Wait
$tape = Get-VBRTapeMedium -Drive "Tape0"
Erase-VBRTapeMedium -Medium $tape -Wait
Move-VBRTapeMedium -Medium $tape -MediaPool "Free" -Confirm:$false

The script above does the following:

1) it loads the Veeam powershell snappin.
2) it gets the tape drive "tape0" and does an inventory. It waits for the next steps until inventory is done.
3) It writes the content of the tape drive (literarily the name of the tape) in the variable "$tape".
4) the script then erases the tape with the variable "$tape" (quick erase) and waits until this step is done.
5) the script then moves the tape to the Veeam media pool "Free".

You will have to check the settings within the manually created media pool, that the media pool adds free tapes automatically from the free media pool in case, additional capazity is needed.
Best regards,

Veeam Platinum Partner
Veeam Vanguard / VMCE v9 / VMTSP v9 / VMSP v9
vExpert / VCA6-DVC / VCA5-DVC / VCA5-Cloud
MCP / MCSA 2012
Personal blog:
Twitter: @widmerkarl
Veeam Vanguard
Posts: 119
Liked: 27 times
Joined: Tue Jan 06, 2015 10:03 am
Location: Switzerland
Full Name: Karl Widmer


Return to Tape

Who is online

Users browsing this forum: No registered users and 1 guest