7.4 Blackout windows
A blackout window prevents runs from starting, for example at night while the NAS does its own maintenance, or during the day when the network is needed. Unlike the time window of a single job (see section 7.1 Schedule kinds), a blackout window applies to many jobs at once.
Where blackout windows are created
An admin creates blackout windows in three places, depending on scope. The same editor appears everywhere.
Place | Scope |
|---|---|
Settings, section Blackout windows | all jobs ("all jobs") |
Repositories, section Blackout windows in the repository | all runs that use this repository, including copy jobs with this repository as target |
Agents, section Blackout windows in an agent's settings | all runs of this agent |
A window always applies to one of these scopes, never to a repository and an agent at once. The lists at a repository and at an agent show only that object's windows; Settings shows all of them. Roles other than admin can see the windows but cannot change them.
Options of a blackout window
The Blackout window button below the list opens the editor; Add window creates the window, and for an existing window the button reads Save.
Option | Effect | Default |
|---|---|---|
Name | A description, for example "NAS maintenance". 1 to 80 characters, no control characters | empty |
Repeats: weekly | The window repeats on the chosen weekdays | selected |
Repeats: once | A single period from date and time to date and time, at most one year long | β |
Days (weekly only) | Weekdays Mon to Sun, multiple selection. With nothing selected, the window applies every day | none selected (every day) |
Start and End (weekly only) | Time of day in server time. If the end is before the start, the window ends the next day (Fri 22:00 to 06:00 ends Saturday 06:00 and belongs to Friday). Equal times block the whole day | 22:00 to 06:00 |
From and Until (once only) | Start and end as a date with time. The end must be after the start | from in one hour until in four hours |
Running jobs: running jobs continue | Runs that are already running when the window begins go on to the end | selected |
Running jobs: cancel running jobs | Runs still running inside the window are cancelled at the next scheduler tick (at most 15 seconds later) | β |
enabled | A disabled window stays saved but blocks nothing | on |
The list shows for each window its name, its times (for example "Fri 22:00β06:00 (+1 day)" or "all day"), its scope, and a status badge: active (with a note until when), disabled, or cancels runs. A right-click offers Edit, Disable or Enable, and Deleteβ¦; Copy name and Copy window ID are available to everyone. The interface asks for confirmation before deleting, because waiting runs may start at once.
Effect on scheduled and running runs
Runs that fall due
A run that falls due during a blackout window is still created and waits in the queue. The run shows "waiting for the blackout window β¦" as the reason, with the window's name and the end of the blackout.
Several occurrences of the same job merge into one run. With rule schedules (see section 7.3 Schedule rules), this run takes the strongest type of the missed appointments. It starts as soon as no blackout window applies anymore.
The job's own time window (Only start between) still applies: a scheduled run starts only when no blackout window applies and the job's window is open.
If more than one window applies, the run waits until all applicable windows have ended. Adjacent occurrences (for example whole-day windows on consecutive days) are treated as one continuous period.
Running runs
Runs that are already running when a window begins go on by default (running jobs continue). With cancel running jobs, the server cancels them at the next scheduler tick, at most 15 seconds after the window begins. Such windows are marked cancels runs in the list; the log of a cancelled run names the blackout window as the reason.
What is held and what is not
Held | Not held |
|---|---|
Backup, maintenance, check, copy, restore test, and synthetic full runs | Restores, instant recovery, server configuration backups, and agent updates |
Runs started by hand
An admin may start a job by hand during a blackout window. The run starts at once, the log notes it as a warning, and a window with cancel running jobs does not cancel it. An operator who starts a run by hand waits like a scheduled run until the blackout ends.
Changes in the audit log
Creating, changing, and deleting a blackout window appear in the audit log as blackout.created, blackout.updated, and blackout.deleted (see chapter 11 Users and Security).
Examples
Goal | Settings |
|---|---|
No backups while the NAS does maintenance at night | Name "NAS maintenance", in the repository on the NAS, weekly, Days with no selection, Start 02:00, End 04:00 |
Spare the office network during the day | under Settings, weekly, Mon-Fri, 08:00 to 17:00. Backups then run in the evening and on weekends |
Keep the weekend free | weekly, Sat and Sun, Start and End equal (for example 00:00 and 00:00): blocks both days entirely |
One-time server maintenance | once, From and Until set to the maintenance period, cancel running jobs so that nothing keeps running into the maintenance |
Do not disturb a user's machine | at the agent, weekly, Mon-Fri, 08:00 to 18:00 |
A weekly window across midnight, such as Friday 22:00 to 06:00, belongs to the day it begins. It blocks Friday from 22:00 and Saturday until 06:00, but not early Friday.