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
Output of
after modifying the schedule.Get-VBRJobScheduleOptions -Job $job
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
,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><Wednesd
ay>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</Thurs
day><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</Fr
iday><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>, HourlyOffset: 45
OptionsContinuous : Enabled: False, ScheduleString: <scheduler><Sunday>0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</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><Thursda
y>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><Fr
iday>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><S
aturday>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Saturd
ay></scheduler>
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 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.
Thanks
Arun