Work-in-progress: split S3 & SSH storage

This commit is contained in:
3wc
2021-11-09 12:37:56 +02:00
parent f5e87f396a
commit ed76e6164b
6 changed files with 57 additions and 7 deletions

View File

@ -3,12 +3,13 @@ FROM docker:19.03.13-dind
RUN apk add --upgrade --no-cache \
bash \
curl \
jq \
restic
RUN curl -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 --output /usr/bin/jq
RUN chmod +x /usr/bin/jq
COPY backup.sh /usr/bin/backup.sh
RUN chmod +x /usr/bin/backup.sh
ENTRYPOINT ["/usr/bin/backup.sh"]
RUN echo "* * * * * /usr/bin/backup.sh" | crontab -
RUN crontab -l
ENTRYPOINT ["crond", "-f", "-L", "/dev/stdout"]