PS View number of restorepoints on disk

PowerShell script exchange

PS View number of restorepoints on disk

Veeam Logoby mikael.mard » Tue Nov 26, 2013 8:11 pm

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
mikael.mard
Lurker
 
Posts: 2
Liked: never
Joined: Tue Nov 26, 2013 5:56 pm

Re: PS View number of restorepoints on disk

Veeam Logoby tsightler » Tue Nov 26, 2013 10:01 pm 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.
tsightler
Veeam Software
 
Posts: 4768
Liked: 1737 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: PS View number of restorepoints on disk

Veeam Logoby mikael.mard » Wed Nov 27, 2013 6:06 pm

Hi tsightler,

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

/M
mikael.mard
Lurker
 
Posts: 2
Liked: never
Joined: Tue Nov 26, 2013 5:56 pm


Return to PowerShell



Who is online

Users browsing this forum: Google [Bot] and 8 guests