-
- Enthusiast
- Posts: 42
- Liked: 5 times
- Joined: Nov 30, 2020 5:58 pm
- Full Name: Alexander Martinez
- Contact:
PowerShell or API to Configure GFS
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.
-
- 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
Hi Alexander
I use Powershell for configuring GFS on a backup job.
Set-VBRJobOptions
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
-
- 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
Thanks much, appreciate! I have done configuring but will keep this one for future changes.
Who is online
Users browsing this forum: No registered users and 15 guests