we don't have a tape-library, just a single LTO5 Drive.
Currently I have to mark manually any unrecognized tape free and then move it to a specific mediapool MP1 so that my Backup to Tape Job, which is scheduled to run anytime new Backup to Disk files arrive, will start.
As I understand, I first have to mark the loaded, unrecognized tape as free (in Terms of PS move to the MediaPool free) and from there move it to my MediaPool MP1 which is linked to my Backup to Tape Job.
Is there a way to make this automatically?
I have already tried using Windows Powershell, however I was not successful, here's what I got so far:
Code: Select all
Get-VBRTapeMedium -Unrecognized | Format-Wide -Property Name > temp1.txt
get-content temp1.txt | Where-Object { $_.Trim() -ne ''} > temp2.txt
$myTape=(get-content temp2.txt)
Move-VBRTapeMedium -Medium $myTape -MediaPool Free
Move-VBRTapeMedium : Der Parameter "Medium" kann nicht gebunden werden. Der Wert "Tape 6
" vom Typ "System.String" kann nicht in den Typ "Veeam.Tape.Core.TapeMedium" konvertiert werden.
Bei Zeile:1 Zeichen:27
+ Move-VBRTapeMedium -Medium <<<< $myTape -MediaPool Free
+ CategoryInfo : InvalidArgument: (:) [Move-VBRTapeMedium], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Veeam.Backup.PowerShell.Command.MoveVBRTapeMedium
So I'd appreciate any help I can get.
thank's,
regards,
Felix