Browse Source

Changed pg_dump format for pg_restore

pull/118/head
Igor Diakonov 5 years ago
parent
commit
ff32d6d016
  1. 2
      postgres-backup-s3/backup.sh

2
postgres-backup-s3/backup.sh

@ -59,7 +59,7 @@ POSTGRES_HOST_OPTS="-h $POSTGRES_HOST -p $POSTGRES_PORT -U $POSTGRES_USER $POSTG
echo "Creating dump of ${POSTGRES_DATABASE} database from ${POSTGRES_HOST}..." echo "Creating dump of ${POSTGRES_DATABASE} database from ${POSTGRES_HOST}..."
pg_dump $POSTGRES_HOST_OPTS $POSTGRES_DATABASE | gzip > dump.sql.gz
pg_dump $POSTGRES_HOST_OPTS -Ft $POSTGRES_DATABASE | gzip > dump.sql.gz
echo "Uploading dump to $S3_BUCKET" echo "Uploading dump to $S3_BUCKET"

Loading…
Cancel
Save