File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
# mysql backup image
2
2
FROM alpine:3.17
3
- LABEL org.opencontainers.image.authors="https://github.com/deitch "
3
+ LABEL org.opencontainers.image.authors="https://github.com/halkeye "
4
4
5
- RUN apk add --no-cache --update postgresql-client bash python3 py3-pip samba-client shadow openssl coreutils && \
5
+ RUN apk add --no-cache --update postgresql-client postgresql15-client bash python3 py3-pip samba-client shadow openssl coreutils && \
6
6
touch /etc/samba/smb.conf && \
7
7
pip3 install awscli
8
8
Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ function do_dump() {
95
95
export PGPASSWORD=" ${DB_PASS} "
96
96
export PGUSER=" ${DB_USER} "
97
97
98
+ PG_DUMP_PATH=" ${PG_DUMP_PATH:- pg_dump} "
99
+
98
100
# what is the name of our source and target?
99
101
now=$( date -u +" %Y-%m-%dT%H:%M:%SZ" )
100
102
# SOURCE: file that the uploader looks for when performing the upload
@@ -146,7 +148,7 @@ function do_dump() {
146
148
# skip db if it is in the exclude list
147
149
continue
148
150
fi
149
- $NICE_CMD pg_dump ${onedb} $PGDUMP_OPTS > $workdir /${onedb} _${now} .sql
151
+ $NICE_CMD ${PG_DUMP_PATH} ${onedb} $PGDUMP_OPTS > $workdir /${onedb} _${now} .sql
150
152
[ $? -ne 0 ] && return 1
151
153
done
152
154
else
You can’t perform that action at this time.
0 commit comments