Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ LABEL maintainer="ITBM"

RUN apk update \
&& apk upgrade \
&& apk add coreutils postgresql17-client aws-cli openssl pigz \
&& apk add coreutils postgresql17-client aws-cli openssl pigz ca-certificates \
&& rm -rf /var/cache/apk/*

COPY --from=build /app/out/go-cron /usr/local/bin/go-cron
Expand All @@ -34,6 +34,7 @@ ENV S3_BUCKET **None**
ENV S3_REGION us-west-1
ENV S3_PREFIX 'backup'
ENV S3_ENDPOINT **None**
ENV S3_SSL_VERIFY true
ENV S3_S3V4 no
ENV SCHEDULE **None**
ENV ENCRYPTION_PASSWORD **None**
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ spec:
| S3_PREFIX | backup | | Path prefix in your bucket |
| S3_REGION | us-west-1 | | The AWS S3 bucket region |
| S3_ENDPOINT | | | The AWS Endpoint URL, for S3 Compliant APIs such as [minio](https://minio.io) |
| S3_SSL_VERIFY | | | Check S3 endpoint ssl |
| S3_S3V4 | no | | Set to `yes` to enable AWS Signature Version 4, required for [minio](https://minio.io) servers |
| SCHEDULE | | | Backup schedule time, see explainatons below |
| ENCRYPTION_PASSWORD | | | Password to encrypt/decrypt the backup |
Expand Down
6 changes: 5 additions & 1 deletion backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ fi
if [ "${S3_ENDPOINT}" == "**None**" ]; then
AWS_ARGS=""
else
AWS_ARGS="--endpoint-url ${S3_ENDPOINT}"
if [ "${S3_SSL_VERIFY}" == "false" ]; then
AWS_ARGS="--endpoint-url ${S3_ENDPOINT} --no-verify-ssl"
else
AWS_ARGS="--endpoint-url ${S3_ENDPOINT}"
fi
fi

export AWS_ACCESS_KEY_ID=$S3_ACCESS_KEY_ID
Expand Down