I'm trying to automate some powershell code to restore a few VM's a weekend back to the repository. I started here: https://helpcenter.veeam.com/docs/backu ... ml?ver=100
The thing is, it works for some server restores and not others. Some of them work, and some instantly fail with:
Code: Select all
3/9/2020 10:15:28 AM Error %ServerName% cannot be restored: Veeam.Tape.Core.InvalidChainException: Oib [vmname=%ServerName%:creation_time=3/6/2020 6:06:23 PM:creation_time_utc=3/6/2020 11:06:23 PM:alg=Full:id=e564e1ae-4e0a-4ec2-ba05-994db1fa8ba8:point_id=47c31f15-1949-48b2-810a-2f96dfd93174:storage_id=b456b41a-0617-44bb-91f6-0107e1eb5969:parent_id=00000000-0000-0000-0000-000000000000:link_id=00000000-0000-0000-0000-000000000000:original_oib_id=e564e1ae-4e0a-4ec2-ba05-994db1fa8ba8:isCorrupted=False] storage not found.
at Veeam.Backup.
Code: Select all
Add-PSSnapin VeeamPSSnapIn
Connect-VBRServer -server %VeeamServer%
$Respoitory = Get-VBRBackupRepository -Name "Storage"
$Server1 = "%ServerName%"
$GetTapeRestorePoint = Get-VBRRestorePoint | Where {$_.Name -eq $Server1 } |Select -last 1
Start-VBRTapeRestore -RestorePoint $GetTapeRestorePoint -Repository $Respoitory -Reason "Tape Verification" -RunAsync