Quantcast
Channel: Backup – Windows and Windows Server forum
Viewing all articles
Browse latest Browse all 3323

Start-WBHyperVRecovery : The specified backup storage location is invalid.

$
0
0

Hi everyone,

I made a backup of a VM on one Hyper-V host. Now I try to restore it on another using Powershell:

$VMName = 'myVM'
$volumeName = 'myVM_bak'
$MachineName = 'host1'
$TargetPath = 'E:\HV'

$WBVolume = Get-WBVolume -AllVolumes | ? {$_.VolumeLabel -eq $volumeName}
$WBBackupTarget = New-WBBackupTarget -Volume $WBVolume
$WBBackupSet = Get-WBBackupSet -BackupTarget $WBBackupTarget -MachineName $MachineName | Select-Object -Last 1
$WBVirtualMachines = ($WBBackupSet.Application | ? Identifier -eq 'HyperV').Component | ? VMName -eq $VMName 
Start-WBHyperVRecovery -BackupSet $WBBackupSet -VMInBackup $WBVirtualMachines -Force -UseAlternateLocation -TargetPath $TargetPath -RecreatePath

I get an error "<g class="gr_ gr_19 gr-alert gr_gramm gr_hide gr_inline_cards gr_run_anim Style multiReplace replaceWithoutSep replaceWithoutSep" data-gr-id="19" id="19">Start-WBHyperVRecovery </g><g class="gr_ gr_18 gr-alert gr_gramm gr_inline_cards gr_run_anim Style replaceWithoutSep" data-gr-id="18" id="18"><g class="gr_ gr_19 gr-alert gr_gramm gr_hide gr_inline_cards gr_disable_anim_appear Style multiReplace replaceWithoutSep replaceWithoutSep" data-gr-id="19" id="19">:</g>The</g> specified backup storage location is invalid."

I can restore the VM using Windows Server Backup UI without any problem. But I need to restore the VM every day.

The both Hyper-V servers are Windows Server 2012 R2




Viewing all articles
Browse latest Browse all 3323

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>