We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c222575 commit ecf7bb7Copy full SHA for ecf7bb7
backup.sh
@@ -48,7 +48,8 @@ echo "Creating dump of ${POSTGRES_DATABASE} database from ${POSTGRES_HOST}..."
48
SRC_FILE=dump.sql.gz
49
DEST_FILE=${POSTGRES_DATABASE}_$(date +"%Y-%m-%dT%H:%M:%SZ").sql.gz
50
51
-pg_dump -h "$POSTGRES_HOST" -p "$POSTGRES_PORT" -U "$POSTGRES_USER" -d "$POSTGRES_DATABASE" | gzip > $SRC_FILE
+# 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
53
54
echo "Uploading dump to $S3_BUCKET"
55
0 commit comments