feat: use cron to run backups

This commit is contained in:
Michael Mandl 2023-08-17 17:00:22 +02:00
parent d2a3aa0b32
commit 6dc493b37e
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
3 changed files with 25 additions and 7 deletions

View file

@ -1,5 +1,12 @@
FROM kopia/kopia
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y cron && rm -rf /var/lib/apt/lists/*
ARG KOPIA_CRON_TIMES="*/30 * * * *"
ENV KOPIA_CRON_TIMES ${KOPIA_CRON_TIMES}
ADD run-backup.sh /
ADD entrypoint.sh /
ENTRYPOINT [ "/entrypoint.sh" ]