Update to use zstd archives for the snapshot file

This commit is contained in:
Ralph 2024-01-03 09:47:52 -05:00 committed by GitHub
parent 8522b4268d
commit 7822ec79da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ SNAPSHOT_URL="${SNAPSHOT_URL:-}" #off by default. latest snapshot at https://lbr
if [[ "$HUB_COMMAND" == "scribe" ]] && [[ -n "$SNAPSHOT_URL" ]] && [[ ! -d /database/lbry-rocksdb ]]; then if [[ "$HUB_COMMAND" == "scribe" ]] && [[ -n "$SNAPSHOT_URL" ]] && [[ ! -d /database/lbry-rocksdb ]]; then
files="$(ls)" files="$(ls)"
echo "Downloading and extracting hub snapshot from $SNAPSHOT_URL" echo "Downloading and extracting hub snapshot from $SNAPSHOT_URL"
wget --no-verbose -c "$SNAPSHOT_URL" -O - | tar x -C /database wget --no-verbose -c "$SNAPSHOT_URL" -O - | tar --use-compress-program=unzstd x -C /database
fi fi
if [ -z "$HUB_COMMAND" ]; then if [ -z "$HUB_COMMAND" ]; then