PowerShell script exchange
victor.bylin@atea.se
Service Provider
Posts: 47 Liked: 2 times
Joined: Oct 26, 2017 11:22 am
Full Name: Victor
Contact:
Post
by victor.bylin@atea.se » Nov 19, 2018 3:22 pm
this post
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: 20397 Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:
Post
by veremin » Nov 19, 2018 3:57 pm
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:
Post
by victor.bylin@atea.se » Nov 20, 2018 7:42 am
this post
Thought I tried that one but must have misspelled it
It works, thanks!
Best regards!
veremin
Product Manager
Posts: 20397 Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:
Post
by veremin » Nov 20, 2018 9:41 am
this post
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!
Users browsing this forum: No registered users and 2 guests