Block a user
kwiz74/backup (latest)
Published 2025-12-21 19:41:45 +01:00 by adelorenzo
Installation
docker pull git.oe74.net/adelorenzo/kwiz74/backup:latestsha256:3df3cb85125f8cc353688026d9cad82cdc110bbd0600f043ee5c397316ca449f
Image Layers
| ADD alpine-minirootfs-3.19.9-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| ARG SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-amd64 |
| ARG SUPERCRONIC_ARM_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-arm64 |
| RUN |2 SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-amd64 SUPERCRONIC_ARM_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-arm64 /bin/sh -c apk add --no-cache postgresql16-client redis bash curl gzip openssl tzdata && ARCH=$(uname -m) && if [ "$ARCH" = "x86_64" ]; then curl -fsSL "$SUPERCRONIC_URL" -o /usr/local/bin/supercronic; elif [ "$ARCH" = "aarch64" ]; then curl -fsSL "$SUPERCRONIC_ARM_URL" -o /usr/local/bin/supercronic; fi && chmod +x /usr/local/bin/supercronic # buildkit |
| ENV TZ=UTC |
| WORKDIR /app |
| COPY scripts/ /app/scripts/ # buildkit |
| COPY cron/backup-schedule /app/crontab # buildkit |
| RUN |2 SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-amd64 SUPERCRONIC_ARM_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-arm64 /bin/sh -c chmod +x /app/scripts/*.sh && mkdir -p /backups/postgres/daily /backups/redis /backups/volumes /backups/logs # buildkit |
| HEALTHCHECK &{["CMD-SHELL" "test -f /tmp/backup-healthy || exit 1"] "1m0s" "10s" "5s" "0s" '\x03'} |
| COPY scripts/entrypoint.sh /entrypoint.sh # buildkit |
| RUN |2 SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-amd64 SUPERCRONIC_ARM_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-arm64 /bin/sh -c chmod +x /entrypoint.sh # buildkit |
| ENTRYPOINT ["/entrypoint.sh"] |
| CMD ["supercronic" "/app/crontab"] |