Skip to content

Commit ecf7bb7

Browse files
committed
chore: change addr of postgres
1 parent c222575 commit ecf7bb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ echo "Creating dump of ${POSTGRES_DATABASE} database from ${POSTGRES_HOST}..."
4848
SRC_FILE=dump.sql.gz
4949
DEST_FILE=${POSTGRES_DATABASE}_$(date +"%Y-%m-%dT%H:%M:%SZ").sql.gz
5050

51-
pg_dump -h "$POSTGRES_HOST" -p "$POSTGRES_PORT" -U "$POSTGRES_USER" -d "$POSTGRES_DATABASE" | gzip > $SRC_FILE
51+
# direct connection, but hardcoded. Need to mind how to do that later
52+
pg_dump -h postgres -p 5432 -U "$POSTGRES_USER" -d "$POSTGRES_DATABASE" | gzip > $SRC_FILE
5253

5354
echo "Uploading dump to $S3_BUCKET"
5455

0 commit comments

Comments
 (0)