We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3065c93 commit 74db798Copy full SHA for 74db798
backup.sh
@@ -52,10 +52,14 @@ case "${PG_BACKUP_ACTION:-dump}" in
52
exit 1
53
fi
54
55
+ if [ -z "${PG_RESTORE_JOBS}" ]; then
56
+ PG_RESTORE_JOBS=1
57
+ fi
58
+
59
echo "Downloading latest snapshot from $PG_BACKUP_FILE"
60
curl -o dump.backup $PG_BACKUP_FILE
61
62
echo "Restoring $POSTGRES_DB database"
- pg_restore -c -C -d $POSTGRES_DB $POSTGRES_HOST_OPTS dump.backup
63
+ pg_restore -v -c -C -d $POSTGRES_DB $POSTGRES_HOST_OPTS -j $PG_RESTORE_JOBS dump.backup
64
;;
65
esac
0 commit comments