PowerShell script exchange
Post Reply
victor.bylin@atea.se
Service Provider
Posts: 47
Liked: 2 times
Joined: Oct 26, 2017 11:22 am
Full Name: Victor
Contact:

Enable Target option on Copy Job - Read the entire restore point from...

Post by victor.bylin@atea.se »

Hi,

I can't find out how to enable "Read the entire restore point from source instead of synthesizing it from increments" with Powershell.

Code: Select all


$job = Get-VBRJob -Name "Test"
$job | Set-VBRJobAdvancedStorageOptions -CompressionLevel 5
$options = $job.GetOptions()

$options.GenerationPolicy.SimpleRetentionRestorePoints = 14
$options.GenerationPolicy.GFSRecentPoints = 14
$options.GenerationPolicy.GFSWeeklyBackups = 4
$options.GenerationPolicy.GFSMonthlyBackups = 24
$options.GenerationPolicy.RetentionPolicyType = "GFS"
$options.GenerationPolicy.EnableRechek = $true
$options.GenerationPolicy.DeletedVmsDataRetentionPeriodDays = "30"
$options.GenerationPolicy.EnableDeletedVmDataRetention = $True
$options.GenerationPolicy   - Want to enable "Read the entire restore point from source instead of synthesizing it from increments"

Set-VBRJobOptions $job $options
Is there a option for it?


Best regards!
veremin
Product Manager
Posts: 20283
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Enable Target option on Copy Job - Read the entire restore point from...

Post by veremin » 1 person likes this post

Try this example and see whether it answers your requirements:

Code: Select all

asnp VeeamPSSnapin
$Job = Get-VBRJob -name "Name of your backup copy job"
$Options = $Job.GetOptions()
$Options.generationpolicy.GFSisreadentirerestorepoint = $True
Set-VBRJobOptions -Job $Job -Options $Options
Thanks!
victor.bylin@atea.se
Service Provider
Posts: 47
Liked: 2 times
Joined: Oct 26, 2017 11:22 am
Full Name: Victor
Contact:

Re: Enable Target option on Copy Job - Read the entire restore point from...

Post by victor.bylin@atea.se »

Thought I tried that one but must have misspelled it :)

It works, thanks!

Best regards!
veremin
Product Manager
Posts: 20283
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Enable Target option on Copy Job - Read the entire restore point from...

Post by veremin »

You're welcome.

Basically, GenerationPolicy option group has everything related to retention schemes (both simple and GFS ones). So, whenever you're looking for a particular property, try to modify the value in UI, see how the change gets reflected in one of properties of GenerationPolicy option group and then set the needed value programmatically.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests