Schedule resource
A Schedule resource holds Run directives that say when the jobs that use it start, at which level and with which overrides.
Examples
Monthly Full, weekly Differential, daily Incremental
Schedule {
Name = WeeklyCycle
Description = "Full on the first Sunday, differential on the other Sundays, incremental daily"
Run = Full 1st sun at 23:05
Run = Differential 2nd-5th sun at 23:05
Run = Incremental mon-sat at 23:05
}
Overrides per run
Schedule {
Name = Monthly
Run = Level=Full Pool=Monthly 1st sat at 21:00
Run = Level=Incremental Pool=Daily Priority=5 mon-fri at 22:30
}
Directives
| Directive | Type | Default | Summary | |
|---|---|---|---|---|
| Name | name | required | Name of the schedule; jobs refer to it with Schedule. | |
| Description | string | Free text describing the schedule. | ||
| Run | schedule run | When the jobs of this schedule run, one directive per rule: optional level and overrides, then the date and time specification. | ||
| Enabled | yes|no | yes | A disabled schedule starts no job; enable schedule and disable schedule change it at run time. |
Name
Key: name · Type: name · Required
Name of the schedule; jobs refer to it with Schedule.
Schedule {
Name = "WeeklyCycle"
}
In the console:
configure add schedule name=WeeklyCycle
Description
Key: description · Type: string
Free text describing the schedule. The Onesimus GUI shows and edits it in the grid editor.
Schedule {
Name = WeeklyCycle
Description = "Full on the first Sunday, incrementals daily"
}
In the console:
configure update schedule=WeeklyCycle description="Full on the first Sunday, incrementals daily"
Run
Key: run · Type: schedule run
When the jobs of this schedule run, one directive per rule: optional level and overrides, then the date and time specification. See the Run block for the syntax. The Onesimus Director checks Run lines like the C++ Director and refuses an invalid one before writing it.
Schedule {
Name = WeeklyCycle
Run = Full 1st sun at 23:05
}
In the console:
configure update schedule=WeeklyCycle run="Full 1st sun at 23:05"
Enabled
Key: enabled · Type: yes|no · Default: yes · Values: yes, no
A disabled schedule starts no job; enable schedule and disable schedule change it at run time.
Schedule {
Name = WeeklyCycle
Enabled = yes
}
In the console:
configure update schedule=WeeklyCycle enabled=yes
Run block
Syntax of a Run directive: [level] [overrides] [date specification] [at HH:MM]. The parts of the date specification combine: “1st sun” is the first Sunday, “mon-fri” every working day, “on 1 jan” the first of January. Without a date specification the run is daily. Words are case-insensitive; # starts a comment.
| Directive | Type | Default | Summary | |
|---|---|---|---|---|
| Level | enum | The level of the run, written as a word (Full) or as Level=Full. | ||
| Pool override | resource | Pool=, FullPool=, IncrementalPool=, DifferentialPool= and NextPool= replace the pools of the job for this run. | ||
| Other overrides | string | Storage=, Messages=, Priority=, SpoolData=yes|no, Accurate=yes|no and MaxRunSchedTime= replace the job’s settings for this run. | ||
| Weekday | string | mon … sun (or monday … sunday), single or as a range mon-fri; several separated by commas. | ||
| Week of the month | string | 1st … 5th (or first … fifth), ranges such as 2nd-5th; last means the last seven days of the month. | ||
| Day of the month | string | Numbers 1 to 31, ranges such as 1-7, written with on: “on 1 at 01:05”. n/m means every m-th day starting with day n (1/2: odd days). | ||
| Month | string | jan … dec (or the full names), single, as list or range. | ||
| Week of the year | string | w00 … w53 (ISO weeks); wNN/wMM means every MM-th week starting with week NN. | ||
| Daily, weekly, monthly, hourly | string | daily (every day), weekly (on Sunday), monthly (the first of the month) and hourly (every hour, at the minute given by at). | ||
| Time | string | at HH:MM in 24-hour time (am/pm are accepted). |
Level
Key: level · Type: enum · Values: Full, Incremental, Differential, VirtualFull, Catalog, InitCatalog, VolumeToCatalog, DiskToCatalog, Data
The level of the run, written as a word (Full) or as Level=Full. Without it the job’s Level applies. Base and Since are accepted; the Onesimus Director then keeps the job’s level.
Run = Level=Full 1st sun at 23:05
Pool override
Key: pool · Type: resource
Pool=, FullPool=, IncrementalPool=, DifferentialPool= and NextPool= replace the pools of the job for this run.
Run = Full Pool=Monthly 1st sun at 23:05
Other overrides
Key: overrides · Type: string
Storage=, Messages=, Priority=, SpoolData=yes|no, Accurate=yes|no and MaxRunSchedTime= replace the job’s settings for this run.
Run = Incremental Priority=5 Storage=File2 mon-fri at 21:00
Weekday
Key: weekday · Type: string
mon … sun (or monday … sunday), single or as a range mon-fri; several separated by commas.
Run = Incremental mon-sat at 23:05
Week of the month
Key: wom · Type: string
1st … 5th (or first … fifth), ranges such as 2nd-5th; last means the last seven days of the month. Combined with a weekday: “1st sun”.
Run = Differential 2nd-5th sun at 23:05
Day of the month
Key: mday · Type: string
Numbers 1 to 31, ranges such as 1-7, written with on: “on 1 at 01:05”. n/m means every m-th day starting with day n (1/2: odd days).
Run = Full on 1 at 01:05
Month
Key: month · Type: string
jan … dec (or the full names), single, as list or range.
Run = Full on 1 jan, jul at 02:00
Week of the year
Key: woy · Type: string
w00 … w53 (ISO weeks); wNN/wMM means every MM-th week starting with week NN.
Run = Full w01/w02 sun at 03:00
Daily, weekly, monthly, hourly
Key: period · Type: string
daily (every day), weekly (on Sunday), monthly (the first of the month) and hourly (every hour, at the minute given by at).
Run = Incremental hourly at 0:15
Time
Key: at · Type: string
at HH:MM in 24-hour time (am/pm are accepted). Without at the run starts at 00:00 (hourly: at :00). Several times need several Run lines.
Run = Incremental daily at 23:05
See also: configuration reference, configure, show