mirror of
https://github.com/ViViDboarder/docker-restic-cron.git
synced 2024-11-21 20:56:36 +00:00
34 lines
673 B
Docker
34 lines
673 B
Docker
ARG REPO=library
|
|
FROM ${REPO}/ubuntu:focal
|
|
LABEL maintainer="ViViDboarder <vividboarder@gmail.com>"
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
cron \
|
|
restic=0.9.6* \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/apt/lists/*
|
|
|
|
VOLUME /root/.cache/restic
|
|
VOLUME /backups
|
|
|
|
ENV BACKUP_DEST="/backups"
|
|
ENV BACKUP_NAME="backup"
|
|
ENV PATH_TO_BACKUP="/data"
|
|
|
|
# Cron schedules
|
|
ENV CRON_SCHEDULE=""
|
|
ENV VERIFY_CRON_SCHEDULE=""
|
|
|
|
COPY backup.sh /
|
|
COPY restore.sh /
|
|
COPY start.sh /
|
|
COPY verify.sh /
|
|
COPY healthcheck.sh /
|
|
COPY cron-exec.sh /
|
|
|
|
HEALTHCHECK CMD /healthcheck.sh
|
|
|
|
CMD [ "/start.sh" ]
|