disable
Disable a job/client/schedule.
Synopsis
disable [job=<job>] [client=<client>] [schedule=<schedule>]
[storage=<storage>]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Switches a job, client or schedule off. A disabled job is no longer started by its schedule, a disabled client is no longer backed up, a disabled schedule triggers no jobs. A disabled job can still be started by hand with run. Without an argument, or with job, client or schedule without a value, the Director offers the enabled resources of that kind.
The change lives only in the memory of the running Director until the next reload or restart. A permanent setting requires Enabled = no in the configuration.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
job= | resource | from .jobs | Job name. | ||
client= | resource | from .clients | Client name. | ||
schedule= | resource | from .schedule | Schedule name. | ||
storage= | resource | from .storages | Storage name. |
Examples
Stop scheduled runs of BackupClient1 until the next reload:
disable job=BackupClient1
Skip the client during maintenance:
disable client=bareos-fd
Suspend a schedule:
disable schedule=WeeklyCycle