I'm trying to enable GFS for all our backup jobs, but even with the help of Veeam support I can't get it working.
This is what the suggestion is from support:
Code: Select all
$jobs = Get-VBRJob | ?{$_.JobType -eq "Backup"}
Foreach ($job in $jobs) {
$job.GetOptions().GFSpolicy.isenabled = $true
$job.Update()
$policy = Get-VBRRetentionPolicy -Job $job
Set-VBRGFSRetentionPolicy -RetentionPolicy $policy -RestorePoints 8 -GFSWeeklyBackups 10 -GFSMonthlyBackups 6 -GFSYearlyBackups 5
}
Cannot convert the "Veeam.Backup.PowerShell.Infos.
VBRSimpleRetentionPolicy" value of type "Veeam.Backup.PowerShell.Infos.VBRSimpleRetentionPolicy" to type "Veeam.Backup.
PowerShell.Infos.VBRGFSRetentionPolicy".
I have been digging around in the help pages, but I can't get it working.
Any advise on how to configure GFS for all jobs with PowerShell?