PowerShell script exchange
Post Reply
egrau
Novice
Posts: 4
Liked: 2 times
Joined: Jun 24, 2013 8:29 pm
Full Name: Eric Grau
Contact:

Start-VBRRestoreVM to do mutiple restores at once

Post by egrau »

How do I get Start-VBRRestoreVM to fire off multiple restores at once?

When I use the GUI I get to choose multiple VMs to restore at once. Here is a copy of the Restore.log

Code: Select all

 
Restore job has been started, name 'IDC01SAS1', sessionId '6d8aab46-22a1-4238-8e35-27fdbad6e049, platform 'EVmware', restoreSpecrestoreSpec '
<ViVmRestoreSpec>
...
<RestoreType>MultiRestore</RestoreType>
...
</ViVmRestoreSpec>

Here is a copy of the restore.log when I run the restore via PowerShell.

Code: Select all

[26.06.2013 11:02:35] <01> Info     Restore job has been started, name 'IDC01SAS1', sessionId '6d8aab46-22a1-4238-8e35-27fdbad6e049, platform 'EVmware', restoreSpec '
<ViVmRestoreSpec>
...
<RestoreType>SingleRestore</RestoreType>
...
</ViVmRestoreSpec>
Here is a copy of the PowerShell script I use to do the restore. The restore works great, one vm gets restored after the previous restore completes. Is there a way for the Start-VBRRestoreVM to spawn off multiple jobs at once?

Code: Select all

##########  Restore Job ##########
##Set VM Name
$VCenterServerName = "10.100.102.112"
$BackupServerName = "esx1"
$ResourceName = "Training"
$DatastoreName = "Training Storage 3"
$BackupName = "IDC 3.0 SU1"
$FolderName = ""

## Array Index (FolderName,VMName), ..., (FolderName,VMName)
$vmMultiArray = @(
             ('C01','IDC01DB'),
             ('C01','IDC01SAS1'),
             ('C01','IDC01SAS2'),
             ('C02','IDC02DB'),
             ('C02','IDC02SAS1'),
             ('C02','IDC02SAS2'),
             ('C03','IDC03DB'),
             ('C03','IDC03SAS1'),
             ('C03','IDC03SAS2'),
             ('C04','IDC04DB'),
             ('C04','IDC04SAS1'),
             ('C04','IDC04SAS2'),
             ('C05','IDC05DB'),
             ('C05','IDC05SAS1'),
             ('C05','IDC05SAS2'),
             ('C06','IDC06DB'),
             ('C06','IDC06SAS1'),
             ('C06','IDC06SAS2'),
             ('C07','IDC07DB'),
             ('C07','IDC07SAS1'),
             ('C07','IDC07SAS2'),
             ('C08','IDC08DB'),
             ('C08','IDC08SAS1'),
             ('C08','IDC08SAS2'),
             ('C09','IDC09DB'),
             ('C09','IDC09SAS1'),
             ('C09','IDC09SAS2'),
             ('C10','IDC10DB'),
             ('C10','IDC10SAS1'),
             ('C10','IDC10SAS2'),
             ('C11','IDC11DB'),
             ('C11','IDC11SAS1'),
             ('C11','IDC11SAS2'),
             ('C12','IDC12DB'),
             ('C12','IDC12SAS1'),
             ('C12','IDC12SAS2')
   )

##Get the vCenter Server:
$VCenterServer = Get-VBRServer –Name ($VCenterServerName)
$VCenterServer

##Get the Backup Server:
$BackupServer = Get-VBRServer –Name ($BackupServerName)
$BackupServer

##Get the Resource Pool:
$ResourcePool = Find-VBRViResourcePool -Server ($VCenterServer) -Name ($ResourceName)
$ResourcePool

##Get the Datastore
$Datastore = Find-VBRViDatastore -Server ($VCenterServer) -Name ($DatastoreName)
$Datastore


## Loop through all of the array Items to perform Restore
foreach ($vm in $vmMultiArray) {
	##Get the Folder and check if it is different then the previous folder
	if ($FolderName -ne $vm[0]) {
		$FolderName = $vm[0]
		$Folder = Find-VBRViFolder -Server $VCenterServer -Name ($FolderName)
		$Folder
	}
	## Get VMName from array
	$VMName = $vm[1]
	
	##Get a list of available restore points, select the last restore point and save it into a variable
	$RestorePoint = Get-VBRRestorePoint -Backup (Get-VBRBackup –Name ($BackupName)) –Name ($VMName) | select -Last (1)
	$RestorePoint

	##Perform Restore of the VM:
	Start-VBRRestoreVM -RestorePoint ($RestorePoint) -Server ($BackupServer) -ResourcePool ($ResourcePool) -Datastore ($Datastore) -Folder ($Folder) -VMName ($VMName)
}
tsightler
VP, Product Management
Posts: 6009
Liked: 2843 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: Start-VBRRestoreVM to do mutiple restores at once

Post by tsightler » 1 person likes this post

You should be able to add "-RunAsync" to the Star-VBRRestoreVM so that instead of holding control it will loop through starting all jobs, instead of waiting for each one to complete before continuing.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Start-VBRRestoreVM to do mutiple restores at once

Post by veremin »

Yep.

Actually, the commands in PowerShell are processed one by one. In other words, not until the first command is completed, will the PowerShell proceed to the second one. So, yes “-RunAsync” should be the answer in your case. This parameter will create a background task, and you won't have to wait for it to complete:

Code: Select all

Start-VBRRestoreVM -RunAsync -RestorePoint ($RestorePoint) -Server ($BackupServer) -ResourcePool ($ResourcePool) -Datastore ($Datastore) -Folder ($Folder) -VMName ($VMName)
Thanks.
egrau
Novice
Posts: 4
Liked: 2 times
Joined: Jun 24, 2013 8:29 pm
Full Name: Eric Grau
Contact:

Re: Start-VBRRestoreVM to do mutiple restores at once

Post by egrau »

Thank you very much that allowed me to run them all at once.

One last problem is that when more than 10 restore jobs are run at once I start getting time out errors.

Code: Select all

[21.06.2013 14:17:35] <01> Info     First call guard was switched on. Mutex: [VimService]
[21.06.2013 14:32:35] <01> Info     [Soap] Connection '10.237.218.116:443:AGFAHEALTHCARE\axfui:False::0:1' is disposing.
[21.06.2013 14:32:35] <01> Info     Job Restore Task operation result: 'Failed to wait mutex famVimService: timeout 300 sec exceeded'
[21.06.2013 14:32:35] <01> Info     Job Restore Task session '54dfa3a3-655e-4ebc-ac42-401ed061a22c' has been completed, status: 'Failed', details: '\nInitializing restore\nFailed to wait mutex famVimService: timeout 300 sec exceeded\n'
[21.06.2013 14:32:35] <01> Info     Unlocking storage(s), lockId: 'd1d59e28-b1de-4f9e-8e6b-ef77458eb899'
[21.06.2013 14:32:35] <01> Info     [RestoreSession] Result 'Failed', description 'Failed to wait mutex famVimService: timeout 300 sec exceeded'
[21.06.2013 14:32:35] <01> Info     Restore job failed Error: Failed to wait mutex famVimService: timeout 300 sec exceeded\n
[21.06.2013 14:32:35] <01> Info     [RestoreSession] Session '3fdb4bd0-9181-4567-8ea8-5d3c938cf1a0' has been completed, status: 'Failed', '1' tasks, '0' successful, '1' failed, details: 'Restore started\nFailed to wait mutex famVimService: timeout 300 sec exceeded\n'
[21.06.2013 14:32:35] <01> Error    Restore job has been failed
[21.06.2013 14:32:35] <01> Error    Failed to wait mutex famVimService: timeout 300 sec exceeded (System.Exception)
I opened a case on this but was told that there is no way to increase the 300 sec timeout. This timeout is used to check the time from the file lock on the backup file to the time that the software actually starts the restore process.

My thinking is then to scrit smaller batches of restore jobs. Rather than having multiple small arrays of 10 elements each to hold my VM list to be restored and then have multiple foreach loops to traverse these I was hoping to check the status of the previous batch snet to restore.

How can I test if the last batch of Restore jobs is completed? I was thinking of using GET-VBRRESTORESESSION but this does not allow me to search for the status of the currently submitted restore jobs.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Start-VBRRestoreVM to do mutiple restores at once

Post by veremin » 1 person likes this post

How can I test if the last batch of Restore jobs is completed? I was thinking of using GET-VBRRESTORESESSION but this does not allow me to search for the status of the currently submitted restore jobs.
Why not?

The following script will catch the latest FullVM Restore session, and required fields can be found there (Result, State, IsCompleted):

Code: Select all

Asnp VeeamPSSnapin
$LatestRestoreSession = Get-VBRRestoreSession | Sort-Object CreationTime -Descending | Select-Object -first 1
$LatestRestoreSession.State
$LatestRestoreSession.IsCompleted
$LatestRestoreSession.Result 
Thanks.
egrau
Novice
Posts: 4
Liked: 2 times
Joined: Jun 24, 2013 8:29 pm
Full Name: Eric Grau
Contact:

Re: Start-VBRRestoreVM to do mutiple restores at once

Post by egrau »

Thank you so much! This worked awesome.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Start-VBRRestoreVM to do mutiple restores at once

Post by veremin »

You’re welcome. Should need be, feel free to contact us. Thanks.
egrau
Novice
Posts: 4
Liked: 2 times
Joined: Jun 24, 2013 8:29 pm
Full Name: Eric Grau
Contact:

Re: Start-VBRRestoreVM to do mutiple restores at once

Post by egrau » 2 people like this post

I have the completed code all worked out and listed below. This works great with a pause after each batch of VM Restore jobs. The program checks for all restores to be completed in the batch before continuing to the next batch. I have now automated the entire restore process which was previously not possible with the GUI.

To use this script just make changes to the Variables at the top of the script especially the BatchSize and make it the desired size. Just remember that too many restore jobs will cause timeout. In that case just lower the BatchSize variable.

Thanks for all the help with this.

Code: Select all

##########  Restore Job ##########

# Clear the Screen
Clear-Host

# Add Veeam PowerShell Snapin
Asnp VeeamPSSnapin

#Set VM Name
$VCenterServerName = "10.100.102.112"
$BackupServerName  = "esx1"
$ResourceName      = "Training"
$DatastoreName     = "Training Storage 3"
$BackupName        = "IDC 3.0 SU1"
$FolderName        = ""
$BatchSize         = 9
$BatchCounter      = 1
$CompletedBatch    = "False"

# Multi Dimensional Array of VMs in Backup (FolderName,VMName), ..., (FolderName,VMName)
$vmRestoreList = @(
      ('C01','IDC01DB',''),
      ('C01','IDC01SAS1',''),
      ('C01','IDC01SAS2',''),
      ('C02','IDC02DB',''),
      ('C02','IDC02SAS1',''),
      ('C02','IDC02SAS2',''),
      ('C03','IDC03DB',''),
      ('C03','IDC03SAS1',''),
      ('C03','IDC03SAS2',''),
      ('C04','IDC04DB',''),
      ('C04','IDC04SAS1',''),
      ('C04','IDC04SAS2',''),
      ('C05','IDC05DB',''),
      ('C05','IDC05SAS1',''),
      ('C05','IDC05SAS2',''),
      ('C06','IDC06DB',''),
      ('C06','IDC06SAS1',''),
      ('C06','IDC06SAS2',''),
      ('C07','IDC07DB',''),
      ('C07','IDC07SAS1',''),
      ('C07','IDC07SAS2',''),
      ('C08','IDC08DB',''),
      ('C08','IDC08SAS1',''),
      ('C08','IDC08SAS2',''),
      ('C09','IDC09DB',''),
      ('C09','IDC09SAS1',''),
      ('C09','IDC09SAS2',''),
      ('C10','IDC10DB',''),
      ('C10','IDC10SAS1',''),
      ('C10','IDC10SAS2',''),
      ('C11','IDC11DB',''),
      ('C11','IDC11SAS1',''),
      ('C11','IDC11SAS2',''),
      ('C12','IDC12DB',''),
      ('C12','IDC12SAS1',''),
      ('C12','IDC12SAS2',''),
      ('CT','IDCTDB',''),
      ('CT','IDCTSAS1',''),
      ('CT','IDCTSAS2','')
   )
   
#Get the vCenter Server:
$VCenterServer = Get-VBRServer -Name ($VCenterServerName)
"`$VCenterServer: $($VCenterServer.RealName)"

#Get the Backup Server:
$BackupServer = Get-VBRServer -Name ($BackupServerName)
"`$BackupServer:  $($BackupServer.RealName)"

# Get the Resource Pool:
$ResourcePool = Find-VBRViResourcePool -Server ($VCenterServer) -Name ($ResourceName)
"`$ResourcePool:  $($ResourcePool.Name)"

# Get the Datastore
$Datastore = Find-VBRViDatastore -Server ($VCenterServer) -Name ($DatastoreName)
"`$Datastore:     $($Datastore.Name)"

# Loop through all of the array Items to perform Restore
#   - all jobs are submitted asynchronously in batched of 9 VMs 
for($i = 0; $i -lt $vmRestoreList.Length; $i += $BatchSize) {

   # end index
   $j = $i + $BatchSize - 1
   if ($j -ge $vmRestoreList.Length) {
       $j = $vmRestoreList.Length - 1
   }

   # create TmpArray which contains array elements within each batch
   $BatchArray = $vmRestoreList[$i..$j]

   # Reset Flag
   $CompletedBatch = "False"
   
   # show batches
   ""
   "-- Batch  $BatchCounter ----------------------------------"
    for($BatchArrayIndex = 0; $BatchArrayIndex -lt $BatchArray.Length; $BatchArrayIndex++) {
      # Get the Folder and check if it is different then the previous folder
      if ($FolderName -ne $BatchArray[$BatchArrayIndex][0]) {
         $FolderName = $BatchArray[$BatchArrayIndex][0]
         $Folder = Find-VBRViFolder -Server ($VCenterServer) -Name ($FolderName)
		 ""
         "`$FolderPath:         $($Folder.Path)"
      }
   
      # Get VMName from array
      $VMName = $BatchArray[$BatchArrayIndex][1]

      # Get a list of available restore points, select the last restore point and save it into a variable
      $RestorePoint = Get-VBRRestorePoint -Backup (Get-VBRBackup -Name ($BackupName)) -Name ($VMName) | select -Last (1)
	  
      # Perform Restore of the VM, store the sessions in an array so that it's Completion can be queried by ID:
      $tmpRestoreSession = Start-VBRRestoreVM -RunAsync -RestorePoint ($RestorePoint) -Server ($BackupServer) -ResourcePool ($ResourcePool) -Datastore ($Datastore) -Folder ($Folder) -VMName ($VMName)
      
	  # Store the Id in the third element of the multidimensional array
	  $BatchArray[$BatchArrayIndex][2] = $tmpRestoreSession.Id

	  # Format index to 2 digits with leading 0's, for display purposes
	  $BatchArrayIndexCounter = "{0:D2}" -f ($BatchArrayIndex + 1)
	  
	  # Format RestorePoint.Name left aligned with a width of 15 chars, right padded with spaces
	  $RestorePointName = "{0,-15}" -f $RestorePoint.Name
      "$BatchArrayIndexCounter - `$RestorePoint:  $RestorePointName  $($RestorePoint.CreationTime)  Id: $($BatchArray[$BatchArrayIndex][2])"

      # Sleep for 5 sec before starting next Restore Job
	  Start-Sleep -s 5
	  
   }
   
   # Check status of previous Batch, only continue if all Restore Jobs were successful
   #Loop
   do {
      # Define Empty Array
      $CurrentRestoreSessionArr = @()
      foreach ($RestoreSession in $BatchArray) {
		 $CurrentRestoreSessionArr += Get-VBRRestoreSession | Select-Object Name,Id,JobTypeString,IsCompleted,Result | where {$_ -match $RestoreSession[2]}
      }
	  
	  
	  $CompletedCnt = 0
	  for ($n=0; $n -lt $CurrentRestoreSessionArr.count; $n++) {
	     if ($CurrentRestoreSessionArr[$n].IsCompleted -eq "True") {
		    $CompletedCnt++
		 }
	  }
   
      # Check if all jobs are Completed   
      if ($CompletedCnt -eq $CurrentRestoreSessionArr.count) {
	     $CompletedBatch = "True"
	  } Else {
	     # Not all jobs are complete, wait 60 sec and check again
         Start-Sleep -s 60
	  }
	  
   }  while ($CompletedBatch -eq "False")
   
   # Display all status's for batch
   ""
   "-- Summary ----------------------------------"
   foreach ($CurrentRestoreSession in $CurrentRestoreSessionArr) {
      # Format RestorePoint.Name left aligned with a width of 15 chars, right padded with spaces
	  $CurrentRestoreSessionName = "{0,-15}" -f $CurrentRestoreSession.Name
      "Name: $CurrentRestoreSessionName $($CurrentRestoreSession.JobTypeString) Result: $($CurrentRestoreSession.Result)"
   }
   "-- Summary ----------------------------------"
   ""
   
   $BatchCounter++
}
Now here is the output report:
$VCenterServer: 10.100.102.112
$BackupServer: esx1
$ResourcePool: Training
$Datastore: Training Storage 3

-- Batch 1 ----------------------------------

$FolderPath: 10.100.102.112\Training\IDC\C01
01 - $RestorePoint: IDC01DB 06/22/2013 09:54:25 Id: 339a6d36-c79b-4b49-bb44-7948bf460556
02 - $RestorePoint: IDC01SAS1 06/22/2013 09:51:56 Id: 2b6d6ca9-3a51-4dff-948d-71aacec74687
03 - $RestorePoint: IDC01SAS2 06/22/2013 09:49:31 Id: 73ba2767-84f6-4f46-8dfe-d96b0b791fad

$FolderPath: 10.100.102.112\Training\IDC\C02
04 - $RestorePoint: IDC02DB 06/22/2013 09:38:57 Id: 2a763d86-4ff7-4fb7-aebf-1891fd69db1f
05 - $RestorePoint: IDC02SAS1 06/22/2013 09:36:30 Id: 749d76ed-11ef-4b03-9b43-4a1258aa5ff6
06 - $RestorePoint: IDC02SAS2 06/22/2013 09:47:03 Id: e5839373-04db-426e-8ac7-54d9884a4f94

$FolderPath: 10.100.102.112\Training\IDC\C03
07 - $RestorePoint: IDC03DB 06/22/2013 09:23:26 Id: 0955952a-4478-4225-a604-bc64c0d1c140
08 - $RestorePoint: IDC03SAS1 06/22/2013 09:31:35 Id: 348c1e50-985e-43a9-beda-29e6b6751375
09 - $RestorePoint: IDC03SAS2 06/22/2013 09:34:01 Id: f83942c7-f6ab-4dab-9d7a-ac2ed90fbcf6

-- Summary ----------------------------------
Name: IDC01DB Full VM restore Result: Success
Name: IDC01SAS1 Full VM restore Result: Success
Name: IDC01SAS2 Full VM restore Result: Success
Name: IDC02DB Full VM restore Result: Success
Name: IDC02SAS1 Full VM restore Result: Success
Name: IDC02SAS2 Full VM restore Result: Success
Name: IDC03DB Full VM restore Result: Success
Name: IDC03SAS1 Full VM restore Result: Success
Name: IDC03SAS2 Full VM restore Result: Success
-- Summary ----------------------------------


-- Batch 2 ----------------------------------

$FolderPath: 10.100.102.112\Training\IDC\C04
01 - $RestorePoint: IDC04DB 06/22/2013 09:18:12 Id: 7cda6fb4-a87f-4bf7-9237-c1441065b1eb
02 - $RestorePoint: IDC04SAS1 06/22/2013 09:15:49 Id: f1eedda2-c861-4a01-9eb5-d821f38c9cb9
03 - $RestorePoint: IDC04SAS2 06/22/2013 09:13:24 Id: 53723482-fe61-409a-83d2-2bd804453b86

$FolderPath: 10.100.102.112\Training\IDC\C05
04 - $RestorePoint: IDC05DB 06/22/2013 09:00:30 Id: 7b7c6031-3578-4228-af1c-4bd6b36efe3d
05 - $RestorePoint: IDC05SAS1 06/22/2013 09:10:51 Id: 38f3cbc2-59f9-4402-bbf9-b9f651f518ed
06 - $RestorePoint: IDC05SAS2 06/22/2013 09:08:21 Id: 80e2858e-f835-479f-b030-56772a8c9492

$FolderPath: 10.100.102.112\Training\IDC\C06
07 - $RestorePoint: IDC06DB 06/22/2013 08:53:05 Id: 3a166e4f-8faf-473a-9a82-a0a961bafaef
08 - $RestorePoint: IDC06SAS1 06/22/2013 08:50:42 Id: 21ea2e28-e382-4e3d-ae51-9bdd71d6b23f
09 - $RestorePoint: IDC06SAS2 06/22/2013 08:48:21 Id: 1170c30a-edab-4403-aef6-717f7b07cfab

-- Summary ----------------------------------
Name: IDC04DB Full VM restore Result: Success
Name: IDC04SAS1 Full VM restore Result: Success
Name: IDC04SAS2 Full VM restore Result: Success
Name: IDC05DB Full VM restore Result: Success
Name: IDC05SAS1 Full VM restore Result: Success
Name: IDC05SAS2 Full VM restore Result: Success
Name: IDC06DB Full VM restore Result: Success
Name: IDC06SAS1 Full VM restore Result: Success
Name: IDC06SAS2 Full VM restore Result: Success
-- Summary ----------------------------------


-- Batch 3 ----------------------------------

$FolderPath: 10.100.102.112\Training\IDC\C07
01 - $RestorePoint: IDC07DB 06/22/2013 08:38:29 Id: 33fcec58-0db0-43cf-94a9-69866793e12c
02 - $RestorePoint: IDC07SAS1 06/22/2013 08:36:08 Id: b1620c00-1301-4e8d-8fe4-02953508a4e8
03 - $RestorePoint: IDC07SAS2 06/22/2013 08:46:24 Id: 2dbfd563-cd91-40b1-bb7c-db74d8314a69

$FolderPath: 10.100.102.112\Training\IDC\C08
04 - $RestorePoint: IDC08DB 06/22/2013 08:23:01 Id: 8af4759f-09c7-49a3-8290-a5f49c4271ef
05 - $RestorePoint: IDC08SAS1 06/22/2013 08:31:23 Id: d2990bea-2df3-47c6-be2d-b07a6b4d0367
06 - $RestorePoint: IDC08SAS2 06/22/2013 08:33:47 Id: d13d87fc-385a-486c-8cc0-6e2123bee220

$FolderPath: 10.100.102.112\Training\IDC\C09
07 - $RestorePoint: IDC09DB 06/22/2013 08:13:12 Id: d2b0cf57-2e23-41ae-8f93-70de3ff53a8d
08 - $RestorePoint: IDC09SAS1 06/22/2013 08:10:54 Id: 118b473e-a568-4b13-9e31-0d5d75ced3b9
09 - $RestorePoint: IDC09SAS2 06/22/2013 08:20:33 Id: c97707f3-54df-426a-8391-ad9bcf3a36e8

-- Summary ----------------------------------
Name: IDC07DB Full VM restore Result: Success
Name: IDC07SAS1 Full VM restore Result: Success
Name: IDC07SAS2 Full VM restore Result: Success
Name: IDC08DB Full VM restore Result: Success
Name: IDC08SAS1 Full VM restore Result: Success
Name: IDC08SAS2 Full VM restore Result: Success
Name: IDC09DB Full VM restore Result: Success
Name: IDC09SAS1 Full VM restore Result: Success
Name: IDC09SAS2 Full VM restore Result: Success
-- Summary ----------------------------------


-- Batch 4 ----------------------------------

$FolderPath: 10.100.102.112\Training\IDC\C10
01 - $RestorePoint: IDC10DB 06/22/2013 08:03:50 Id: b86cb79b-da2f-4de6-8b8a-296f3f49d28c
02 - $RestorePoint: IDC10SAS1 06/22/2013 08:01:32 Id: 35f81a8e-6b41-4a7c-9213-24babedaa272
03 - $RestorePoint: IDC10SAS2 06/22/2013 07:59:11 Id: 2c98a45e-c1df-4df3-ad52-e318302b7592

$FolderPath: 10.100.102.112\Training\IDC\C11
04 - $RestorePoint: IDC11DB 06/22/2013 07:48:37 Id: 44923b38-c3e1-4d89-b2b4-25582d81ebda
05 - $RestorePoint: IDC11SAS1 06/22/2013 07:46:17 Id: 6b1eb625-f3cb-45c8-9e84-8a4d3ddd2f11
06 - $RestorePoint: IDC11SAS2 06/22/2013 07:56:46 Id: b7bbaf9d-b2ef-4306-85f5-b76564c62be2

$FolderPath: 10.100.102.112\Training\IDC\C12
07 - $RestorePoint: IDC12DB 06/22/2013 07:36:13 Id: 2ee4e8f9-dc07-44cb-86a2-f4cc488b1461
08 - $RestorePoint: IDC12SAS1 06/22/2013 07:43:49 Id: 5b039f85-23e7-4fac-8c66-67c077931479
09 - $RestorePoint: IDC12SAS2 06/22/2013 07:33:47 Id: aae023f1-bfdc-4fd9-a87f-d25d270fc4bc

-- Summary ----------------------------------
Name: IDC10DB Full VM restore Result: Success
Name: IDC10SAS1 Full VM restore Result: Success
Name: IDC10SAS2 Full VM restore Result: Success
Name: IDC11DB Full VM restore Result: Success
Name: IDC11SAS1 Full VM restore Result: Success
Name: IDC11SAS2 Full VM restore Result: Success
Name: IDC12DB Full VM restore Result: Success
Name: IDC12SAS1 Full VM restore Result: Success
Name: IDC12SAS2 Full VM restore Result: Success
-- Summary ----------------------------------


-- Batch 5 ----------------------------------

$FolderPath: 10.100.102.112\Training\IDC\CT
01 - $RestorePoint: IDCTDB 06/22/2013 07:21:48 Id: bf34e907-1fd7-497b-bdeb-2d0b42befd22
02 - $RestorePoint: IDCTSAS1 06/22/2013 07:31:31 Id: 3ddf4403-cbbf-4623-8ce4-5347ff5f3914
03 - $RestorePoint: IDCTSAS2 06/22/2013 07:29:14 Id: f80b7148-ce24-4654-89ec-a87ec1820898

-- Summary ----------------------------------
Name: IDCTDB Full VM restore Result: Success
Name: IDCTSAS1 Full VM restore Result: Success
Name: IDCTSAS2 Full VM restore Result: Success
-- Summary ----------------------------------
C:\Users\Administrator>
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Start-VBRRestoreVM to do mutiple restores at once

Post by veremin »

Glad to hear that my input was helpful.

I’ve to admit that you did a great job scripting separate parts together. So, thank you for coming backup and updating the topic with the working example; much appreciated.
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests