16 lines
310 B
Bash
16 lines
310 B
Bash
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
apk add --upgrade --no-cache bash restic python3 py3-pip
|
|
|
|
# Todo use requirements file with specific versions
|
|
pip install click docker resticpy
|
|
|
|
cron_schedule="${CRON_SCHEDULE:?CRON_SCHEDULE not set}"
|
|
|
|
echo "$cron_schedule backup create" | crontab -
|
|
crontab -l
|
|
|
|
crond -f -d8 -L /dev/stdout
|