setdevice

Bareos

Sets device parameter.

Synopsis

setdevice [storage=<storage>] [device=<device>] [autoselect=<yes|no>]

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

Description

Changes the Auto Select setting of a device in the Storage Daemon at run time. With autoselect=no the Storage Daemon no longer picks the device for jobs, for example during maintenance; with autoselect=yes it is available again. The state lasts until the Storage Daemon restarts; configuration and catalog are not touched.

storage=, device= and autoselect= are all required, in any order, and the keywords must be lower case; no other arguments are allowed. A console restricted to certain storages may only change their devices.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
storage=resourcefrom .storagesStorage name.
device=stringDevice name.
autoselect=boolyes, noAutoselect flag.

Examples

Keep jobs away from Drive-1 during maintenance:

setdevice storage=Tape device=Drive-1 autoselect=no

Make the drive available again:

setdevice storage=Tape device=Drive-1 autoselect=yes

See also

Command reference