-
- Enthusiast
- Posts: 29
- Liked: 1 time
- Joined: Oct 01, 2019 6:04 am
- Full Name: Sandip Saha
- Contact:
Modify GFS days in powershell
Hello,
We are attempting to modify GFS days, for example, my jobs set gfs is Monday, and we need to change Saturday with some jobs, as well as change synthetic full backup days from Monday to Saturday with some jobs.
Please help me with PowerShell commands for those.
Sandip
We are attempting to modify GFS days, for example, my jobs set gfs is Monday, and we need to change Saturday with some jobs, as well as change synthetic full backup days from Monday to Saturday with some jobs.
Please help me with PowerShell commands for those.
Sandip
-
- Veeam Software
- Posts: 1991
- Liked: 659 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Modify GFS days in powershell
Hi Sandip,
To clarify - what kind of jobs you are aiming to change GFS settings for? For example, VMware/Hyper-V Backup, Backup Copy, Agent Management Backup etc.
Best regards,
Oleg
To clarify - what kind of jobs you are aiming to change GFS settings for? For example, VMware/Hyper-V Backup, Backup Copy, Agent Management Backup etc.
Best regards,
Oleg
-
- Enthusiast
- Posts: 29
- Liked: 1 time
- Joined: Oct 01, 2019 6:04 am
- Full Name: Sandip Saha
- Contact:
Re: Modify GFS days in powershell
Hi Oleg,
thanks for reply
I am trying to do windows and linux agent based backup jobs and copy job.
Regards
Sandip
thanks for reply
I am trying to do windows and linux agent based backup jobs and copy job.
Regards
Sandip
-
- Veeam Software
- Posts: 1991
- Liked: 659 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Modify GFS days in powershell
Hi Sandip,
For agent backup jobs it's pretty straightforward. For example, to change weekly GFS and synth full days to Saturday, try the following:
All the cmdlets above are referenced in this section.
For backup copy jobs it would depend on the product version. For v12 use Set-VBRBackupCopyJob cmdlet with the same algorithm as for Set-VBRComputerBackupJob. For example:
Best regards,
Oleg
For agent backup jobs it's pretty straightforward. For example, to change weekly GFS and synth full days to Saturday, try the following:
Code: Select all
$agentJob = Get-VBRComputerBackupJob -Name 'Agent Backup Job 1'
$gfsOptions = $agentJob.GFSOptions
$synthFullOptions = $agentJob.SyntheticFullOptions
$weeklyGFSOptions = Set-VBRComputerGFSWeeklyOptions -Options $gfsOptions.WeeklyOptions -SelectedDay Saturday
$newSynthFullOptions = Set-VBRSyntheticFullOptions -Options $synthFullOptions -Days Saturday
$newGfsOptions = Set-VBRGFSOptions -GFSOptions $gfsOptions -GFSWeeklyOptions $weeklyGFSOptions -GFSMonthlyOptions $gfsOptions.MonthlyOptions -GFSYearlyOptions $gfsOptions.YearlyOptions
Set-VBRComputerBackupJob -Job $agentJob -GFSOptions $newGfsOptions -SyntheticFullOptions $newSynthFullOptions
For backup copy jobs it would depend on the product version. For v12 use Set-VBRBackupCopyJob cmdlet with the same algorithm as for Set-VBRComputerBackupJob. For example:
Code: Select all
$copyJob = Get-VBRBackupCopyJob -Name 'Backup Copy Job 1'
$gfsOptions = $copyJob.GFSOptions
$weeklyGFSOptions = Set-VBRGFSWeeklyOptions -Options $gfsOptions.WeeklyOptions -SelectedDay Saturday
$newGfsOptions = Set-VBRGFSOptions -GFSOptions $gfsOptions -GFSWeeklyOptions $weeklyGFSOptions -GFSMonthlyOptions $gfsOptions.MonthlyOptions -GFSYearlyOptions $gfsOptions.YearlyOptions
Set-VBRBackupCopyJob -Job $copyJob -GFSOptions $newGfsOptions
Oleg
-
- Enthusiast
- Posts: 29
- Liked: 1 time
- Joined: Oct 01, 2019 6:04 am
- Full Name: Sandip Saha
- Contact:
Re: Modify GFS days in powershell
Thanks Oleg,
Its works like cake
thanks again for help .
Sandip.
Its works like cake
thanks again for help .
Sandip.
Who is online
Users browsing this forum: No registered users and 16 guests