Browse Source

Added jobs count

pull/118/head
Igor Diakonov 5 years ago
parent
commit
0ca035d7ef
  1. 1
      postgres-restore-s3/Dockerfile
  2. 2
      postgres-restore-s3/restore.sh

1
postgres-restore-s3/Dockerfile

@ -9,6 +9,7 @@ ENV POSTGRES_HOST **None**
ENV POSTGRES_PORT 5432 ENV POSTGRES_PORT 5432
ENV POSTGRES_USER **None** ENV POSTGRES_USER **None**
ENV POSTGRES_PASSWORD **None** ENV POSTGRES_PASSWORD **None**
ENV RESTORE_JOBS 4
ENV S3_ACCESS_KEY_ID **None** ENV S3_ACCESS_KEY_ID **None**
ENV S3_SECRET_ACCESS_KEY **None** ENV S3_SECRET_ACCESS_KEY **None**
ENV S3_BUCKET **None** ENV S3_BUCKET **None**

2
postgres-restore-s3/restore.sh

@ -73,7 +73,7 @@ fi
echo "Restoring ${LATEST_BACKUP}" echo "Restoring ${LATEST_BACKUP}"
pg_restore $POSTGRES_HOST_OPTS -C -c --if-exists --no-owner -j 4 -v -d $POSTGRES_DATABASE dump.sql
pg_restore $POSTGRES_HOST_OPTS -C -c --if-exists --no-owner -j $RESTORE_JOBS -v -d $POSTGRES_DATABASE dump.sql
echo "Restore complete" echo "Restore complete"
Loading…
Cancel
Save