PowerShell script exchange
Post Reply
spider32
Enthusiast
Posts: 42
Liked: 5 times
Joined: Nov 30, 2020 5:58 pm
Full Name: Alexander Martinez
Contact:

PowerShell or API to Configure GFS

Post by spider32 »

Just like to check if these options are available on either Powershell (VBR) or API (Enterprise Manager). I was looking but did not find any option. Thanks.
Mildur
Product Manager
Posts: 10537
Liked: 2832 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: PowerShell or API to Configure GFS

Post by Mildur »

Hi Alexander

I use Powershell for configuring GFS on a backup job.

Set-VBRJobOptions

Code: Select all

$Job = Get-VBRJob -Name JobName
   $options = Get-VBRJobOptions -Job $Job
   $options.BackupStorageOptions.RetentionType = "Days"
   $options.BackupStorageOptions.RetainDaysToKeep = 30
   $options.GfsPolicy.IsEnabled = $true
   $options.GfsPolicy.Weekly.IsEnabled = $true
   $options.GfsPolicy.Weekly.KeepBackupsForNumberOfWeeks = 4
   $options.GfsPolicy.Weekly.DesiredTime = "Sunday"
   $options.GfsPolicy.Monthly.IsEnabled = $true
   $options.GfsPolicy.Monthly.KeepBackupsForNumberOfMonths = 6
   $options.GfsPolicy.Yearly.IsEnabled = $true
   $options.GfsPolicy.Yearly.KeepBackupsForNumberOfYears = 2
Set-VBRJobOptions -Job $Job -Options $options
Product Management Analyst @ Veeam Software
spider32
Enthusiast
Posts: 42
Liked: 5 times
Joined: Nov 30, 2020 5:58 pm
Full Name: Alexander Martinez
Contact:

Re: PowerShell or API to Configure GFS

Post by spider32 »

Thanks much, appreciate! I have done configuring but will keep this one for future changes.
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests