How to get only Full backups with Get-VBRRestorePoint

PowerShell script exchange

How to get only Full backups with Get-VBRRestorePoint

Veeam Logoby davosplatz » Tue Feb 19, 2013 2:11 pm

Good morning:

I need to retrieve only the restore points of type "Full" from a single Job in order to restore VM files and send it to a secondary destination. I have tried Get-VBRRestorePoint -Backup(Get-VBRBackup -Name "Backups") -Name Windows* | select -Last 1 and i succesfully can find the last restore point named Windows.. After that i thought i could change the parameter "Name" for "Type" so I could pass a -Type "Full" but it prompts an error that "Type" is not recognized as a parameter for Get-VBRRestorePoint.

The question, in summary, is how can i filter Full backups in Get-VBRRestorePoint? or maybe using another cmdlet?

Thanks so much in advance. :D
davosplatz
Lurker
 
Posts: 2
Liked: never
Joined: Tue Feb 19, 2013 1:42 pm
Full Name: David Espejo

Re: How to get only Full backups with Get-VBRRestorePoint

Veeam Logoby v.Eremin » Tue Feb 19, 2013 2:23 pm 1 person likes this post

Try the following script, it will list for a given job all restore points which type is full:

Code: Select all
Add-PSSnapin VeeamPssnapin
Get-VBRBackup -name "Name of your Job" | Get-VBRRestorePoint | ? {$_.type -eq "Full"} 

If you’re willing to list these points for a specific VM, "–name" parameter is needed:

Code: Select all
Add-PSSnapin VeeamPssnapin
Get-VBRBackup -name "Name of your Job" | Get-VBRRestorePoint -name "Name of your VM"| ? {$_.type -eq "Full"}


Hope this helps.
Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: How to get only Full backups with Get-VBRRestorePoint

Veeam Logoby davosplatz » Tue Feb 19, 2013 2:30 pm

Works like a charm!

Thanks so much v.Eremin.
davosplatz
Lurker
 
Posts: 2
Liked: never
Joined: Tue Feb 19, 2013 1:42 pm
Full Name: David Espejo


Return to PowerShell



Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests