structured json logging with -m flag

This commit is contained in:
2023-11-23 18:44:17 +01:00
parent 4befebba38
commit 15275b2571
2 changed files with 60 additions and 31 deletions

View File

@ -5,7 +5,7 @@ set -e -o pipefail
apk add --upgrade --no-cache restic bash python3 py3-pip
# Todo use requirements file with specific versions
pip install click==8.1.7 docker==6.1.3 resticpy==1.0.2
pip install click==8.1.7 docker==6.1.3 resticpy==1.0.2 python-json-logger==2.0.7
if [ -n "$SSH_HOST_KEY" ]
then
@ -14,7 +14,7 @@ fi
cron_schedule="${CRON_SCHEDULE:?CRON_SCHEDULE not set}"
echo "$cron_schedule backup create" | crontab -
echo "$cron_schedule backup --machine-logs create" | crontab -
crontab -l
crond -f -d8 -L /dev/stdout