diff --git a/Dockerfile b/Dockerfile index ec8c180..bafe541 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ 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} +ARG KOPIA_CRON_SCHEDULE="*/30 * * * *" +ENV KOPIA_CRON_SCHEDULE ${KOPIA_CRON_SCHEDULE} ADD run-backup.sh / ADD entrypoint.sh / diff --git a/entrypoint.sh b/entrypoint.sh index 5011134..9ab4c8e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,9 +2,9 @@ CRONTAB=/etc/cron.d/kopia-backup -echo "Running cron with schedule ${KOPIA_CRON_TIMES}" +echo "Running cron with schedule ${KOPIA_CRON_SCHEDULE}" -echo "${KOPIA_CRON_TIMES} /run-backup.sh > /dev/stdout" > ${CRONTAB} +echo "${KOPIA_CRON_SCHEDULE} /run-backup.sh > /dev/stdout" > ${CRONTAB} chmod 0644 ${CRONTAB} crontab ${CRONTAB}