Veeam 7 Powershell Change Restore Point to Keep

PowerShell script exchange

Veeam 7 Powershell Change Restore Point to Keep

Veeam Logoby sidavid » Mon Aug 26, 2013 11:19 pm

Hi,

I want to change the number of restore points to keep in BackupCopy Jobs in powershell.

Get-VBRJob -Name $BackupCopyJobName | Set-VBRJobAdvancedOptions

I need the options to add that correspond to the Restore Point Policy.

Many thanks

DS
sidavid
Enthusiast
 
Posts: 60
Liked: never
Joined: Sun Jan 01, 2006 1:01 am

Re: Veeam 7 Powershell Change Restore Point to Keep

Veeam Logoby tsightler » Tue Aug 27, 2013 5:28 am

I'd probably do it like this:
Code: Select all
$job = Get-VBRJob -Name "<Job_Name>"
$job.Options.GenerationPolicy.SimpleRetentionRestorePoints = 14
$job.SetOptions($job.Options)

All of the Backup Copy job options are in the GenerationPolicy object and these properties can be manipulated there.
tsightler
Veeam Software
 
Posts: 4768
Liked: 1737 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: Veeam 7 Powershell Change Restore Point to Keep

Veeam Logoby v.Eremin » Tue Aug 27, 2013 10:26 am

I’ve previously created a couple of snapshots that might help you to understand beter what PS command is responsible for this or that BCJ schedule setting. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Veeam 7 Powershell Change Restore Point to Keep

Veeam Logoby sidavid » Tue Aug 27, 2013 12:01 pm

Many thanks guys !!!
With your help I'm able to finish my script
sidavid
Enthusiast
 
Posts: 60
Liked: never
Joined: Sun Jan 01, 2006 1:01 am


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 4 guests