PowerShell script exchange
Post Reply
skumflum
Service Provider
Posts: 33
Liked: 1 time
Joined: Jun 13, 2016 6:51 am
Full Name: Søren Emig
Contact:

Start-VBRRestoreVirtualDisks to ESXi Datastore

Post by skumflum »

Hi,

We want to automate some tasks with powershell and restore VMDK files directly to ESXi Datastore.

We have tried use the command: start-VCBRRestoreVirutalDisk but it only seems to work with Windows and local paths. However, can we get it to work with ESXi hosts instead?

We have tried some combinations:

Datastore: prd.dc1esxdemo1-01.tdvv
Folder: sjov


Start-VBRRestoreVirtualDisks -RestorePoint $Restorepoint -Server dc1esxdemo1-01.test.local -Path "dc1san3par01-demo1-TDVV01\prd.dc1esxdemo1-01.tdvv" -RestoreDiskType Vmdk
Start-VBRRestoreVirtualDisks -RestorePoint $Restorepoint -Server dc1esxdemo1-01.test.local -Path "dc1san3par01-demo1-TDVV01\prd.dc1esxdemo1-01.tdvv/sjov" -RestoreDiskType Vmdk

Start-VBRRestoreVirtualDisks -RestorePoint $Restorepoint -Server dc1esxdemo1-01.test.local -Path "[prd.dc1esxdemo1-01.tdvv] sjov" -RestoreDiskType Vmdk
Start-VBRRestoreVirtualDisks -RestorePoint $Restorepoint -Server dc1esxdemo1-01.test.local -Path "vmfs/volumes/prd.dc1esxdemo1-01.tdvv/sjov" -RestoreDiskType Vmdk
Start-VBRRestoreVirtualDisks -RestorePoint $Restorepoint -Server dc1esxdemo1-01.test.local -Path "nfc://conn:dc1svcsares01:nfchost:host-9302,stg:Datastore-datastore-9383@dc1esxdemo1-01" -RestoreDiskType Vmdk


It seems like it connect to the host. We get this error in VBR

Invalid SoapPath link: "dc1san3par01-TDVV01\prd.dc1esxcomp1-12.tdvv/sjov"

'Text' is an invalid XmlNodeType. Line 1, position 1.

It looks like something from this post.

powershell-f26/restore-vmdk-from-cloud- ... 41699.html
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Start-VBRRestoreVirtualDisks to ESXi Datastore

Post by veremin »

Unfortunately, you're correct in saying that the said cmdlet only works with Windows servers and local paths. Thanks!
skumflum
Service Provider
Posts: 33
Liked: 1 time
Joined: Jun 13, 2016 6:51 am
Full Name: Søren Emig
Contact:

Re: Start-VBRRestoreVirtualDisks to ESXi Datastore

Post by skumflum »

thanks for the clear answer :(

If I were to do that witch API/Script would it be possible with another method? Or any hope for update 4?
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Start-VBRRestoreVirtualDisks to ESXi Datastore

Post by veremin »

The only option I can think of is to restore those files locally and then copy them to the given datastore. Thanks!
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 4 guests