Modify schedule of regular backup job

PowerShell script exchange

Modify schedule of regular backup job

Veeam Logoby » Mon Jun 11, 2018 4:55 am

Hello Everyone,

My object was to modify the schedule of backup jobs. My jobs will run in every one hour Monday to Friday and over the weekend they will run in every 4 hours.
I have modify the schedule of a job from VEEAM power shell console. But after modifying the job something went wrong. Now i am unable to edit the same job. It throws an error "vbr failed to deserialize scheduleinfo, There are multiple root elements. Line1, Position 66 "

I have used below code. Command was completed without any error.

Code: Select all
$job = Get-VBRJob -Name *dc01
$option = $job.ScheduleOptions
$option.OptionsPeriodically.Schedule = '<Sunday>0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1</Sunday><Monday>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Monday><Tuesday>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Tuesday><Wednesday>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Wednesday><Thursday>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Thursday><Friday>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Friday><Saturday>0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1</Saturday>'
Set-VBRJobScheduleOptions -Job $job -Options $option

I can verify the schedule and can run the job from VEEAM power shell console.

Output of
Get-VBRJobScheduleOptions -Job $job
after modifying the schedule.

Code: Select all
OptionsScheduleAfterJob               : Veeam.Backup.Model.CScheduleAfterJobOptions
StartDateTimeLocal                    : 6/10/2018 5:45:00 PM
EndDateTimeSpecified                  : False
EndDateTimeLocal                      : 6/12/2018 5:11:59 PM
RepeatSpecified                       : False
RepeatNumber                          : 1
RepeatTimeUnit                        : hour(s)
RepeatTimeUnitMs                      : 3600000
RetryTimes                            : 3
RetryTimeout                          : 10
RetrySpecified                        : True
WaitForBackupCompletion               : True
BackupCompetitionWaitingPeriodMin     : 180
BackupCompetitionWaitingUnit          : Hours
OptionsDaily                          : Enabled: False, DayNumberInMonth: Everyday, Days: Sunday,
                                        Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
OptionsMonthly                        : Enabled: False, Time: 5/30/2018 10:00:00 PM, Day Number In
                                        Month: Fourth, Day Of Week: Saturday, Months: January,
                                        February, March, April, May, June, July, August, September,
                                        October, November, December
OptionsPeriodically                   : Enabled: True, Period: 1 hour(s), ScheduleString: <Sunday>0,1,1
                                        /Saturday>, HourlyOffset: 45
OptionsContinuous                     : Enabled: False, ScheduleString: <scheduler><Sunday>0,0,0,0,0,0,
OptionsBackupWindow                   : Veeam.Backup.Model.CBackupWindowOptions
NextRun                               : 06/10/2018 23:45:00
LatestRunLocal                        : 6/10/2018 10:45:05 PM
LatestRecheckLocal                    : 1/1/0001 12:00:00 AM
BackupAtStartup                       : False
BackupAtLogoff                        : False
BackupAtLock                          : False
BackupAtStorageAttach                 : False
LimitBackupsFrequency                 : False
MaxBackupsFrequency                   : 2
FrequencyTimeUnit                     : Hour
EjectRemovableStorageOnBackupComplete : False
ResumeMissedBackup                    : False
IsServerMode                          : False
IsFakeSchedule                        : False
IsContinious                          : False

I have manually run the job and it was completed successfully but next run is still freeze.

I have not opened a support as I have tested it with one job and i have created a new job for same problematic job. Any idea what went wrong.

Service Provider
Posts: 10
Liked: never
Joined: Sat Aug 16, 2014 1:13 am
Full Name: Arun Kumar

Re: Modify schedule of regular backup job

Veeam Logoby v.Eremin » Wed Jun 13, 2018 11:14 am

To return everything back try to get schedule options of non-problematic job and apply them to the problematic job. Thanks.
Veeam Software
Posts: 14700
Liked: 1100 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Return to PowerShell

Who is online

Users browsing this forum: No registered users and 8 guests