I new in the Veeam tape as i not really familiar with it.
I understand that Veeam require to manually inventory the tape and assign to the specific media. I might need someone who can assist me on the automated script.
The autoloader have 8 slot in total but we will only insert tape 1-7 to slot 1-7 which each tape will represent 1 days such as slot 1 monday, slot 2 tuesday and so on. After that, each week of monday all the tapes will be take out and input new 7 tapes to the represent slot again. I know that after we manually remove the tape we need manual delete those tape from the media pool as it not valid anymore. I not sure how we can do it in the script.
Is there any script can auto perform inventory first then move the tape to the represent slot?
I did go through the forum and found some script and trying to combine them but i not sure it will be correct or not.
Please kindly provide me any feedback if it possible.
thanks
Code: Select all
Add-PSSnapin VeeamPSSnapIn
Start-VBRTapeInventory -Library "HP 1x8 G2 AUTOLDR 5.00"
Get-VBRTapeDrive | Eject-VBRTapeDrive
start-sleep -s 180
$monday = Get-VBRTapeMediaPool -name "Monday"
#Using the first to slots for Monday
$tape = Get-VBRTapeMedium | where {$_.location.address -eq "1"}
Move-VBRTapeMedium -Medium $tape -MediaPool $monday -Confirm:$false
$Tuesday = Get-VBRTapeMediaPool -name "Tuesday"
#Using the first to slots for Tuesday
$tape = Get-VBRTapeMedium | where {$_.location.address -eq "2"}
Move-VBRTapeMedium -Medium $tape -MediaPool $tuesday -Confirm:$false
$Wednesday = Get-VBRTapeMediaPool -name "Wednesday"
#Using the first to slots for Wednesday
$tape = Get-VBRTapeMedium | where {$_.location.address -eq "3"}
Move-VBRTapeMedium -Medium $tape -MediaPool $wednesday -Confirm:$false
$Thursday = Get-VBRTapeMediaPool -name "Thursday"
#Using the first to slots for Thursday
$tape = Get-VBRTapeMedium | where {$_.location.address -eq "4"}
Move-VBRTapeMedium -Medium $tape -MediaPool $thursday -Confirm:$false
$Friday = Get-VBRTapeMediaPool -name "Friday"
#Using the first to slots for Friday
$tape = Get-VBRTapeMedium | where {$_.location.address -eq "5"}
Move-VBRTapeMedium -Medium $tape -MediaPool $friday -Confirm:$false
$Saturday = Get-VBRTapeMediaPool -name "Saturday"
#Using the first to slots for Saturday
$tape = Get-VBRTapeMedium | where {$_.location.address -eq "6"}
Move-VBRTapeMedium -Medium $tape -MediaPool $saturday -Confirm:$false
$Sunday = Get-VBRTapeMediaPool -name "Sunday"
#Using the first to slots for Sunday
$tape = Get-VBRTapeMedium | where {$_.location.address -eq "7"}
Move-VBRTapeMedium -Medium $tape -MediaPool $sunday -Confirm:$false