Integrate colorama for coloured output #164
|
@ -179,6 +179,12 @@ sudo systemctl start borgmatic.timer
|
||||||
Feel free to modify the timer file based on how frequently you'd like
|
Feel free to modify the timer file based on how frequently you'd like
|
||||||
borgmatic to run.
|
borgmatic to run.
|
||||||
|
|
||||||
|
## Colored Output
|
||||||
|
|
||||||
|
Borgmatic uses [colorama](https://pypi.org/project/colorama/) to produce
|
||||||
|
colored terminal output by default. It is disabled when a non-interactive
|
||||||
|
terminal is detected (like a cron job). Otherwise, it can be disabled by
|
||||||
|
|||||||
|
passing `--no-color` or by setting the environment variable `PY_COLORS=False`.
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user
Given that borgmatic is used so often from cron jobs, a reader's first reaction might be: "Wait.. Does that mean I need to specify
--no-colour
if I want to call borgmatic from a cron job?" To get ahead of that concern, it might be good to state here that the "by default" color won't happen on a non-interactive terminal (like a cron job).