PowerShell script exchange
Post Reply
mikael.mard
Lurker
Posts: 2
Liked: never
Joined: Nov 26, 2013 5:56 pm
Contact:

PS View number of restorepoints on disk

Post by mikael.mard »

Hi,

I'm trying to find a PS cmd to view eath backup job and Retention policy for the number of restorepoints to keep on disk. I would like to get the current number set under 'Storage' Retention policy and the number of restorepoints to keep on disk for a backup job.

Is that possible :?:

/M
tsightler
VP, Product Management
Posts: 6035
Liked: 2860 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: PS View number of restorepoints on disk

Post by tsightler » 1 person likes this post

mikael.mard wrote: I would like to get the current number set under 'Storage' Retention policy and the number of restorepoints to keep on disk for a backup job.
I'm not sure what you mean as to me, these are the same. The code below will display each job and the number of restore points the job is configured to keep:

Code: Select all

Get-VBRJob | ? {$_.JobType -eq "Backup"} | Select -Property @{N="Job Name";E={$_.Name}}, @{N="Configured Restore Points";E={$_.Options.BackupStorageOptions.RetainCycles}}
If you help me understand what other value you are looking for I'm sure we can get it.
mikael.mard
Lurker
Posts: 2
Liked: never
Joined: Nov 26, 2013 5:56 pm
Contact:

Re: PS View number of restorepoints on disk

Post by mikael.mard »

Hi tsightler,

Thanks, this was perfect, spot on :!: :D

/M
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests