diff --git a/postgres-restore-s3/Dockerfile b/postgres-restore-s3/Dockerfile index a0f8ce3..8bac82f 100644 --- a/postgres-restore-s3/Dockerfile +++ b/postgres-restore-s3/Dockerfile @@ -9,6 +9,7 @@ ENV POSTGRES_HOST **None** ENV POSTGRES_PORT 5432 ENV POSTGRES_USER **None** ENV POSTGRES_PASSWORD **None** +ENV RESTORE_JOBS 4 ENV S3_ACCESS_KEY_ID **None** ENV S3_SECRET_ACCESS_KEY **None** ENV S3_BUCKET **None** diff --git a/postgres-restore-s3/restore.sh b/postgres-restore-s3/restore.sh index 58b04c2..a569d2c 100644 --- a/postgres-restore-s3/restore.sh +++ b/postgres-restore-s3/restore.sh @@ -73,7 +73,7 @@ fi 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"