Skip to content
Merged
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
2 changes: 1 addition & 1 deletion postgres-backup-s3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM webdevops/go-crond:master-alpine
FROM webdevops/go-crond:main-alpine
LABEL maintainer="Johannes Schickling <schickling.j@gmail.com>"

ADD install.sh install.sh
Expand Down
2 changes: 1 addition & 1 deletion postgres-backup-s3/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ if [ "${POSTGRES_BACKUP_ALL}" == "true" ]; then
fi

echo "Creating dump of all databases from ${POSTGRES_HOST}..."
pg_dumpall -h $POSTGRES_HOST -p $POSTGRES_PORT -U $POSTGRES_USER | gzip > $SRC_FILE
pg_dumpall $POSTGRES_HOST_OPTS | gzip > $SRC_FILE

if [ "${ENCRYPTION_PASSWORD}" != "**None**" ]; then
echo "Encrypting ${SRC_FILE}"
Expand Down
2 changes: 1 addition & 1 deletion postgres-backup-s3/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -eo pipefail

apk update
apk add openssl aws-cli
apk add postgresql-client --repository=https://dl-cdn.alpinelinux.org/alpine/v3.19/main
apk add postgresql-client

# cleanup
rm -rf /var/cache/apk/*
2 changes: 1 addition & 1 deletion postgres-backup-s3/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ fi
if [ "${SCHEDULE}" = "**None**" ]; then
sh backup.sh
else
echo -e "SHELL=/bin/sh\n${SCHEDULE} /bin/sh /backup.sh" > /etc/crontabs/root
echo -e "SHELL=/bin/sh\n${SCHEDULE} root /bin/sh /backup.sh" > /etc/crontabs/root
exec go-crond /etc/crontabs/root
fi
Loading