-
- Lurker
- Posts: 1
- Liked: never
- Joined: Oct 04, 2011 2:03 pm
- Full Name: James Hartley
- Contact:
File level restore via powershell??
Hi,
Does anyone know if you can restore certain files from a backup, via powershell?
I have run the backup job and restored the whole server via powershell, but can't seem to work out how you would just restore a certain file.
Any help would be appreciated.
Thanks
James
Does anyone know if you can restore certain files from a backup, via powershell?
I have run the backup job and restored the whole server via powershell, but can't seem to work out how you would just restore a certain file.
Any help would be appreciated.
Thanks
James
-
- VP, Product Management
- Posts: 27371
- Liked: 2799 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: File level restore via powershell??
Hello James,
You should be using this PowerShell cmdlet to restore individual Windows Guest files:
Hope this helps!
You should be using this PowerShell cmdlet to restore individual Windows Guest files:
Code: Select all
Start-VBRWindowsFileRestore
-
- Influencer
- Posts: 21
- Liked: never
- Joined: Sep 15, 2011 1:41 pm
- Contact:
Re: File level restore via powershell??
Hi,
There is no cmdlet for a Guest OS FLR ?
There is no cmdlet for a Guest OS FLR ?
-
- VP, Product Management
- Posts: 27371
- Liked: 2799 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: File level restore via powershell??
Do you possibly mean "Other OS" FLR cmdlet? If this is the case, then, unfortunately, it is not available at the moment.
-
- Enthusiast
- Posts: 71
- Liked: 6 times
- Joined: Apr 07, 2014 10:00 am
- Full Name: Adrian Hinton
- Contact:
Re: File level restore via powershell??
Hi,
How can I restore a file using the Start-VBRWindowsFileRestore cmdlet? When I look at the drives after I have the session in a variable this is what I see: C:\VeeamFLR\SERVER\Volume0, C:\VeeamFLR\SERVER\Volume1, C:\VeeamFLR\SERVER\Volume2. And I cannot access the mounted drive.
How can I restore a file using the Start-VBRWindowsFileRestore cmdlet? When I look at the drives after I have the session in a variable this is what I see: C:\VeeamFLR\SERVER\Volume0, C:\VeeamFLR\SERVER\Volume1, C:\VeeamFLR\SERVER\Volume2. And I cannot access the mounted drive.
-
- Enthusiast
- Posts: 71
- Liked: 6 times
- Joined: Apr 07, 2014 10:00 am
- Full Name: Adrian Hinton
- Contact:
Re: File level restore via powershell??
I think I'm getting there:
Dir $WFLR.MountSession.MountedDevices.DriveLetter[0]
Dir $WFLR.MountSession.MountedDevices.DriveLetter[0]
-
- Enthusiast
- Posts: 71
- Liked: 6 times
- Joined: Apr 07, 2014 10:00 am
- Full Name: Adrian Hinton
- Contact:
Re: File level restore via powershell??
Sorry for the Spam.. I will work out the rest later for myself but I have answered my question.
$WFLR = $null
$WFLR = Get-VBRBackup -Name "Backup-Job" | Get-VBRRestorePoint |
Sort CreationTime -Descending | Select -First 1 | Start-VBRWindowsFileRestore
$WFLR.MountSession.MountedDevices.mountpoint | % {
GCI -Path $_
}
Stop-VBRWindowsFileRestore $WFLR
The above will list the contents of the root directories of the VM's drives and the GCI command in the foreach loop can be modified to perform the finding and copying of the test files. And the files are located by default at C:\VeeamFLR\SERVERNAME\Volume(n) etc.. on the VBR server.
Thank you
$WFLR = $null
$WFLR = Get-VBRBackup -Name "Backup-Job" | Get-VBRRestorePoint |
Sort CreationTime -Descending | Select -First 1 | Start-VBRWindowsFileRestore
$WFLR.MountSession.MountedDevices.mountpoint | % {
GCI -Path $_
}
Stop-VBRWindowsFileRestore $WFLR
The above will list the contents of the root directories of the VM's drives and the GCI command in the foreach loop can be modified to perform the finding and copying of the test files. And the files are located by default at C:\VeeamFLR\SERVERNAME\Volume(n) etc.. on the VBR server.
Thank you
-
- Product Manager
- Posts: 20400
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: File level restore via powershell??
Hi Andrian, we have some examples of using file level restore via PS in the adjacent thread; might be worth reviewing. Thanks.
Who is online
Users browsing this forum: Google [Bot] and 12 guests