Initial commit

This commit is contained in:
2026-02-15 15:16:36 +01:00
commit 7c1a67be4e
12 changed files with 207 additions and 0 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM alpine:3.21
RUN apk add --no-cache \
restic \
mariadb-client \
sqlite \
openssh-client \
bash \
&& mkdir -p /mnt/source /mnt/staging /hooks
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
COPY backup.sh /usr/local/bin/backup.sh
RUN chmod +x /usr/local/bin/entrypoint.sh /usr/local/bin/backup.sh
ENV BACKUP_CRON="20 7 * * *" \
BACKUP_SOURCE="/mnt/source /mnt/staging" \
KEEP_DAILY=1 \
KEEP_WEEKLY=3 \
KEEP_MONTHLY=4 \
KEEP_YEARLY=1
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]