trace

Bareos

Turn on/off trace to file.

Synopsis

trace [on | off]

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

Description

trace on makes the Director write its debug output to the file bareos-dir.trace in its working directory; trace off stops this and closes the file. How much is written depends on the debug level set with setdebug. The setting affects the whole Director, not only the own session, and lasts until it is switched off or the Director restarts.

Only off switches it off; every other word switches it on, including typos. Without exactly one word the Director asks “Turn on or off?”; a single dot aborts. Onesimus extension: if the trace file cannot be opened, odir reports the path and the error, whereas Bareos stays silent.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
<on|off>enumon, offpositionalSwitch on or off.

Examples

Write debug output to bareos-dir.trace:

trace on

Stop tracing and close the file:

trace off

See also

Command reference