Set FullBackupDays

PowerShell script exchange

Set FullBackupDays

Veeam Logoby emmoon1981 » Mon Jul 18, 2016 4:47 am

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
emmoon1981
Novice
 
Posts: 5
Liked: never
Joined: Sat Jul 09, 2016 9:34 am
Full Name: Ehsan Mohseni

Re: Set FullBackupDays

Veeam Logoby Vitaliy S. » Mon Jul 18, 2016 2:59 pm 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.
Vitaliy S.
Veeam Software
 
Posts: 19558
Liked: 1102 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Set FullBackupDays

Veeam Logoby nefes » Mon Jul 18, 2016 3:07 pm

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: 534
Liked: 125 times
Joined: Mon Dec 10, 2012 8:44 am
Full Name: Nikita Efes

Re: Set FullBackupDays

Veeam Logoby nefes » Mon Jul 18, 2016 4:13 pm 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.
nefes
Veeam Software
 
Posts: 534
Liked: 125 times
Joined: Mon Dec 10, 2012 8:44 am
Full Name: Nikita Efes

Re: Set FullBackupDays

Veeam Logoby emmoon1981 » Tue Jul 19, 2016 4:22 am

Thanks For Your Great answer It works correctly :)
emmoon1981
Novice
 
Posts: 5
Liked: never
Joined: Sat Jul 09, 2016 9:34 am
Full Name: Ehsan Mohseni


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 3 guests