initial rewrite

This commit is contained in:
2023-09-07 01:41:03 +02:00
parent 42ae6a6b9b
commit 447a808849
5 changed files with 171 additions and 16 deletions

View File

@ -1,12 +1,15 @@
#!/bin/sh
set -e
set -eu
apk add --upgrade --no-cache bash curl jq restic
apk add --upgrade --no-cache bash curl jq restic python3 py3-pip
# Todo use requirements file
pip install click docker resticpy
cron_schedule="${CRON_SCHEDULE:?CRON_SCHEDULE not set}"
echo "$cron_schedule /backup.sh" | crontab -
#echo "$cron_schedule /backupbot.py" | crontab -
crontab -l
crond -f -d8 -L /dev/stdout