Standalone backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)
Post Reply
wheelerob
Lurker
Posts: 1
Liked: never
Joined: Sep 05, 2019 7:19 pm
Full Name: Robert Wheeler
Contact:

Script restore for multiple restore points

Post by wheelerob »

I have a restore that has at least 15 restore points and a few hundred directories in each restore point where I only need one folder in each of the parent folders restored. I have been clicking on them and choosing "copy to" and then I enter the UNC path of an alternate server. This is taking me hours (about 4 or 5 hours per restore point) and I have to do this a lot. Is there any way to script this so that I don't have to do them one directory at a time?
MichaelCade
Veeam Software
Posts: 315
Liked: 74 times
Joined: Mar 23, 2015 11:55 am
Full Name: Michael Cade
Location: Cambridge, United Kingdom
Contact:

Re: Script restore for multiple restore points

Post by MichaelCade »

Yes this could absolutely be scripted.

Have you seen - https://helpcenter.veeam.com/docs/backu ... l?ver=95u4

This example shows how to start a restore session for Windows VM guest OS files and restore them to the specified folder.

Code: Select all

$backup = Get-VBRBackup

$restorepoint = Get-VBRRestorePoint -Backup $backup -Name "Production VM"

Start-VBRWindowsFileRestore -RestorePoint $restorepoint

$credentials = Get-VBRCredentials -Name "CRM DB Administrator"

$session = Get-VBRRestoreSession

Start-VBRWindowsGuestItemRestore -Path "C:\Files\" -Session $session -RestorePolicy Keep -GuestCredentials $credentials
Regards,

Michael Cade
Global Technologist
Veeam Software
Email: Michael.Cade@Veeam.com
Twitter: @MichaelCade1
Dima P.
Product Manager
Posts: 14726
Liked: 1707 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Script restore for multiple restore points

Post by Dima P. »

Hello Robert,

Please clarify if you are talking about file level recovery via agent UI or via Veeam B&R console? Thank you!
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests