7.1 Schedule kinds
A job's schedule determines when the server creates a run. You choose it in the job editor in the Schedule section. If the job has a protection plan (see section 7.6 Plans), it takes over the plan's schedule and the fields are hidden in the editor.
The seven kinds at a glance
The Runs selector offers these kinds:
Kind | Fields | Example |
|---|---|---|
Manually only | none | Runs start only by hand (Run asโฆ or Run now) |
Daily | At (server time) | daily at 02:00 |
Weekly | At (server time), Days | Mon-Fri at 22:00 |
Monthly | At (server time), Day of month | on the 1st of every month at 03:00 |
Cron expression | Expression |
|
Rules (several times and types) | one or more rules | Full on the 1st Sunday, incremental otherwise (see section 7.3 Schedule rules) |
After another job | After job, Start when it ends with | A copy job after the backup job |
All times are server time, that is, the local time zone of the machine the server runs on. The scheduler checks every 15 seconds, and again on every event (new run, agent connected, run finished), whether a job is due.
A new job starts out as Daily at 02:00. For a disk image job the editor suggests Weekly on Saturday instead, because images are large. Maintenance and check jobs start out as Weekly on Sunday at 04:00 (check: 05:00).
Fields per kind
Manually only
The job has no appointment. It runs only when a user starts it (see chapter 06 Jobs) or another function triggers it. The shared options Only start between and Catch up missed runs after server downtime do not apply.
Daily
Option | Effect | Default |
|---|---|---|
At (server time) | Time of day in HH:MM format (24 hours) at which a run is created every day | 02:00 |
Weekly
Option | Effect | Default |
|---|---|---|
At (server time) | Time of the run | 02:00 |
Days | Weekdays on which the run takes place. At least one day is required, otherwise the server rejects the schedule | Mon-Fri |
Monthly
Option | Effect | Default |
|---|---|---|
At (server time) | Time of the run | 02:00 |
Day of month | 1 to 31. The value 31 stands for the last day of shorter months: in a 30-day month the job runs on the 30th, in February on the 28th or 29th. The same applies to any value that exceeds the month | 1 |
Cron expression
Option | Effect | Default |
|---|---|---|
Expression | Cron expression with 5 or 6 fields in local server time, in the order minute, hour, day, month, weekday. An invalid expression is rejected on save |
|
Examples:
Expression | Meaning |
|---|---|
| every 4 hours on the hour |
| Monday to Friday at 01:30 |
| on the 1st and 15th of every month at 22:15 |
A protection plan without its own rules also produces a cron schedule for RPO values below 24 hours (see section 7.6 Plans).
After another job
This kind has no appointment of its own. The run is created as soon as the chosen job ends.
Option | Effect | Default |
|---|---|---|
After job | The job whose end is awaited. The job itself is not offered. Required | empty |
Start when it ends with | Success or warning: start only after a run that succeeded or ended with a warning. Any result: start after every end, including a failure | Success or warning |
Typical use: a copy job (see chapter 06 Jobs) that copies the result of a backup job to a second repository, or a maintenance job after the nightly backup.
Rules
Rules (several times and types) combines several times, days, and backup types in one schedule. All fields of a rule are in section 7.3 Schedule rules.
Options for every schedule except "Manually only"
Option | Effect | Default |
|---|---|---|
Only start between โฆ and โฆ | Time window in server time. Scheduled runs start only inside the window; a run that falls due outside waits until the window opens. If the start is after the end (22:00 to 06:00), the window spans midnight; equal times mean "always". Runs started by hand ignore the window | off; 22:00 to 06:00 when enabled |
Catch up missed runs after server downtime | If the server was not running at the appointment, or the PC was off or asleep, it creates one run at the next start. Without the checkmark, missed appointments are skipped. Details in section 7.5 Power, Wake-on-LAN and catch-up | on |
A job's time window complements the blackout windows from section 7.4 Blackout windows: a scheduled run starts only when no blackout window applies and the job's window is open.
If the machine being backed up is offline at the appointment, the run is still created. It waits for the agent and starts as soon as the agent connects (see chapter 05 Agents; to wake the machine, see section 7.5 Power, Wake-on-LAN and catch-up).
Schedules in the REST API
The REST API accepts schedules as JSON (see chapter 13 Configuration Reference). The type field selects the kind; window and catch_up apply to all kinds:
{"type": "daily", "time": "02:00", "window": {"start": "22:00", "end": "06:00"}, "catch_up": true}
{"type": "weekly", "time": "02:00", "days": ["mon", "thu"]}
{"type": "monthly", "time": "03:00", "day": 1}
{"type": "cron", "expr": "0 */4 * * *"}
{"type": "after", "job_id": "<job ID>", "on": "success"}
{"type": "manual"}
For after, success (default) and always are allowed. Weekdays are named mon to sun.