PowerShell script exchange
Post Reply
davosplatz
Lurker
Posts: 2
Liked: never
Joined: Feb 19, 2013 1:42 pm
Full Name: David Espejo
Contact:

How to get only Full backups with Get-VBRRestorePoint

Post by davosplatz »

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
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

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

Post by veremin » 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.
davosplatz
Lurker
Posts: 2
Liked: never
Joined: Feb 19, 2013 1:42 pm
Full Name: David Espejo
Contact:

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

Post by davosplatz »

Works like a charm!

Thanks so much v.Eremin.
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests