setdebug

Bareos

Sets debug level.

Synopsis

setdebug [level=<level>] [trace=<-1|0|1>] [timestamp=<-1|0|1>]
         [hangup=<-1|0|1>] [tags=<tags>] [client=<client>] [storage=<storage>]
         [dir] [director] [all]

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

Description

Sets the debug level of the Director (dir or director), a File Daemon (client=), a Storage Daemon (storage=) or all daemons at once (all). Level 0 switches debug output off. The running daemon is changed, not its configuration; after a restart the start value applies again.

trace= writes the debug output to a trace file in the working directory, timestamp= prefixes every debug line with a time stamp; without them the setting stays unchanged. hangup= is a File Daemon test aid that drops the connection after n files. A missing level is asked for, a missing target leads to a daemon selection.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
level=integerDebug level.
trace=enum-1, 0, 1Trace flag.
timestamp=enum-1, 0, 1Timestamp flag.
hangup=enum-1, 0, 1FD hangup flag.
tags=stringDebug tags.
client=resourcefrom .clientsFile Daemon.
storage=resourcefrom .storagesStorage Daemon.
dirkeywordThe Director.
directorkeywordThe Director.
allkeywordEvery daemon.

Examples

Verbose Director debugging into the trace file:

setdebug level=100 trace=1 dir

Debug the File Daemon with time stamps:

setdebug level=200 timestamp=1 client=bareos-fd

Switch debug output off everywhere:

setdebug level=0 all

See also

Command reference