@ -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}..."
pg_dump $POSTGRES_HOST_OPTS -Ft $POSTGRES_DATABASE | gzip > dump.sql.gz
pg_dump $POSTGRES_HOST_OPTS -Fc $POSTGRES_DATABASE | gzip > dump.sql.gz
echo "Uploading dump to $S3_BUCKET"
@ -73,7 +73,7 @@ fi
echo "Restoring ${LATEST_BACKUP}"
pg_restore $POSTGRES_HOST_OPTS -C -c --if-exists --no-owner -v -d $POSTGRES_DATABASE dump.sql
pg_restore $POSTGRES_HOST_OPTS -C -c --if-exists --no-owner -j 4 -v -d $POSTGRES_DATABASE dump.sql
echo "Restore complete"