-
- Influencer
- Posts: 22
- Liked: never
- Joined: Oct 16, 2012 5:47 pm
- Full Name: John White
- Contact:
Simple Request: Generate a list of restore points
Get-VBRRestorePoint <jobname>?
-
- VP, Product Management
- Posts: 6035
- Liked: 2860 times
- Joined: Jun 05, 2009 12:57 pm
- Full Name: Tom Sightler
- Contact:
Re: Simple Request: Generate a list of restore points
Code: Select all
Get-VBRBackup -Name <jobname> | Get-VBRRestorePoint
-
- Influencer
- Posts: 22
- Liked: never
- Joined: Oct 16, 2012 5:47 pm
- Full Name: John White
- Contact:
Re: Simple Request: Generate a list of restore points
Nice. Thank you.
Any parameters for sorting results?
Any parameters for sorting results?
-
- Veteran
- Posts: 282
- Liked: 26 times
- Joined: Nov 10, 2010 6:51 pm
- Full Name: Seth Bartlett
- Contact:
Re: Simple Request: Generate a list of restore points
It's actually done on the backups, not the jobs themselves.
This should output a list of all the restore points to a "RestorePoints.txt" file on your C:\ drive.
Code: Select all
(Get-VBRBackup | Get-VBRRestorePoint) | Out-File "C:\RestorePoints.txt"
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
-
- Influencer
- Posts: 17
- Liked: 3 times
- Joined: Nov 10, 2010 2:18 pm
- Full Name: Martin Pugh
- Location: Massachusetts
- Contact:
Re: Simple Request: Generate a list of restore points
Sorting can be done by piping the results into SORT:meeyou wrote:Nice. Thank you.
Any parameters for sorting results?
Code: Select all
Get-VBRBackup -name "job name" | Get-VBRRestorePoint | Sort VmName
Code: Select all
Get-VBRBackup -name "job name" | Get-VBRRestorePoint | Get-Member
Martin
www.thesurlyadmin.com
@thesurlyadm1n
www.thesurlyadmin.com
@thesurlyadm1n
-
- Influencer
- Posts: 22
- Liked: never
- Joined: Oct 16, 2012 5:47 pm
- Full Name: John White
- Contact:
Re: Simple Request: Generate a list of restore points
Thanks so much, learning a ton about powershell in general from this thread.
-
- VP, Product Management
- Posts: 6035
- Liked: 2860 times
- Joined: Jun 05, 2009 12:57 pm
- Full Name: Tom Sightler
- Contact:
Re: Simple Request: Generate a list of restore points
You have all the capabilities of Powershell at your fingertips for sorting/filtering:meeyou wrote:Nice. Thank you.
Any parameters for sorting results?
Code: Select all
Get-VBRBackup -Name "<JobName>" | Get-VBRRestorePoint | Sort Name,CreationTime
I prefer a little more complex where name is sorted ascending, and creation time in descending order, so that VMs are in alphabetical order, but most recent restore points are listed first:
Code: Select all
Get-VBRBackup -Name "<JobName>" | Get-VBRRestorePoint | Sort Name,@{Expression = {$_.CreationTime}; Ascending = $false}
Who is online
Users browsing this forum: AdsBot [Google] and 6 guests