.defaults

Bareos

Get default settings.

Synopsis

.defaults [job=<job>] [client=<client>] [storage=<storage>] [pool=<pool>]

Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.

Description

Shows the main settings of a job, client, storage or pool as key=value lines. The WebUI and scripts use it to prefill forms such as run or restore with values from the configuration. It reads only the configuration and changes nothing.

Give exactly one resource per call; the name must match exactly. A JobDefs template is not a job and returns nothing, nor does a resource hidden by the console’s ACL. For pool= one line reads purge_oldest_volume==0 with a double equals sign, as in Bareos. Under API 2 an error leaves result empty instead of an empty defaults object.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
job=resourcefrom .jobsJob name.
client=resourcefrom .clientsClient name.
storage=resourcefrom .storagesStorage name.
pool=resourcefrom .poolsPool name.

Examples

Show the defaults of a job:

.defaults job=backup-bareos-fd

Show the settings of pool Full:

.defaults pool=Full

See also

Command reference