Hi @MikeLeone
I’m not even sure if that will be possible with Veeam. Currently with Veeam you have an option to eject the tape once the job has completed.
https://helpcenter.veeam.com/docs/backup/vsphere/ejecting_tapes.html?ver=120
The other option would be to query the Veeam Database to determine the status of the tape. This might be useful:
https://forums.veeam.com/powershell-f26/get-tape-content-via-powershell-t22142-60.html
You could then eject the tape depending on the status you get back. The script is quite old, from version 9.5. I’ve not tested it so your milage may vary.
Cheers,
Dips
Thanks! From doing some quick testing, this seems to tell me the tapes currently in the library that are marked “FULL”.
$LibraryName = "QUANTUM Scalar i3-i6 305G"
Get-VBRTapeMedium -Library $LibraryName | Where {$_.IsFull -eq "TRUE"} | Select Name, LastWriteTime | Sort -Property Name
That should be the list that needs to be taken out, the day the script runs, if the goal is to eject tapes that are “FULL”. I wouldn’t want to automate the ejection, as someone needs to physically remove the tapes as there are only so many export slots.
Yeah, I don’t want to eject the tape when the job is done, because another job could still store data on the tape, since there is still room. Those scripts seem to be querying the SQL server directly, which - for my specific use case - is probably vastly overkill. I just want to know what to tell the operator to eject that day. :-)