PowerShell script exchange
Post Reply
emmoon1981
Novice
Posts: 5
Liked: never
Joined: Jul 09, 2016 9:34 am
Full Name: Ehsan Mohseni
Contact:

Set FullBackupDays

Post by emmoon1981 »

Hi everyone,
I'm looking for a quick powershell script that will get me the configure "Active Full Backup" Job Days in storage advanced settings
So I try this one from Veeam helpcenter website
"Get-VBRJob -Name "My job" | Set-VBRJobAdvancedBackupOptions -Algorithm Incremental -TransformFullToSyntethic $False -TransformIncrementsToSyntethic $False -EnableFullBackup $True -FullBackupScheduleKind Monthly -DayNumberInMonth First -FullBackupDays Wednesday"
and everythings work fine just the parameter "-FullBackupDays Wednesday" instead of setting Wednesday set Monday .

can one of you assist me or point me in the right direction?
thanks
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Set FullBackupDays

Post by Vitaliy S. » 1 person likes this post

Ehsan, we have confirmed this unexpected behavior, I will let you know if there is a workaround for this. Thanks for the heads up.
nefes
Veeam Software
Posts: 643
Liked: 162 times
Joined: Dec 10, 2012 8:44 am
Full Name: Nikita Efes
Contact:

Re: Set FullBackupDays

Post by nefes »

Workaround will be following:

Code: Select all

$j = Get-VBRJob -Name "My job"
$o = $j.Options
$o.BackupTargetOptions.FullBackupMonthlyScheduleOptions.DayOfWeek = "Wednesday"
Set-VBRJobOptions -Job $j -Options $o
nefes
Veeam Software
Posts: 643
Liked: 162 times
Joined: Dec 10, 2012 8:44 am
Full Name: Nikita Efes
Contact:

Re: Set FullBackupDays

Post by nefes » 2 people like this post

Ninja edit: there is more convenient way to do it:

Code: Select all

Get-VBRJob -Name "My job" | Set-VBRJobAdvancedBackupOptions -Algorithm Incremental -TransformFullToSyntethic $False -TransformIncrementsToSyntethic $False -EnableFullBackup $True -FullBackupScheduleKind Monthly -DayNumberInMonth First -DayOfWeek Wednesday
Correct parameter is -DayOfWeek for that case, not -FullBackupDays. We've passed this information to technical writers team.
emmoon1981
Novice
Posts: 5
Liked: never
Joined: Jul 09, 2016 9:34 am
Full Name: Ehsan Mohseni
Contact:

Re: Set FullBackupDays

Post by emmoon1981 »

Thanks For Your Great answer It works correctly :)
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests