initial rewrite

This commit is contained in:
2023-09-07 01:41:03 +02:00
parent 9b9cfc6e17
commit 1633c3e856
6 changed files with 171 additions and 135 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