Skip to content

Commit

Permalink
fix: Correctly specify output format
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Sep 25, 2017
1 parent 7f73851 commit 179afd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ mc config host add pg "$MINIO_SERVER" "$MINIO_ACCESS_KEY" "$MINIO_SECRET_KEY" "$
ARCHIVE="${MINIO_BUCKET}/${DB}-$(date $DATE_FORMAT).archive"

echo "Dumping $DB to $ARCHIVE"
echo "> pg_dump ${ARGS} -F custom $DB"
echo "> pg_dump ${ARGS} -Fc $DB"

pg_dump "${ARGS}" -F custom "$DB" | mc pipe "pg/$ARCHIVE" || { echo "Backup failed"; mc rm "pg/$ARCHIVE"; exit 1; }
pg_dump "${ARGS}" -Fc "$DB" | mc pipe "pg/$ARCHIVE" || { echo "Backup failed"; mc rm "pg/$ARCHIVE"; exit 1; }

echo "Backup complete"

0 comments on commit 179afd0

Please sign in to comment.