Skip to content

Commit

Permalink
Restoring the snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
alpeto9 committed Oct 16, 2024
1 parent 1bf8668 commit 0ae0472
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.ledgerdownloader
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ RUN apt-get update \
curl \
wget \
bash \
aria2
aria2 \
zstd

# Copy the script from the host into the container
COPY downloadLedgerSnapshot.sh /usr/local/scripts/downloadLedgerSnapshot.sh
Expand Down
5 changes: 5 additions & 0 deletions downloadLedgerSnapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@ else
ls -l "$DATA_DIR"
fi

tar --use-compress-program=zstdmt -xvf RADIXDB-INDEX.tar.zst --exclude=./address_book -C .
rm -rf RADIXDB-INDEX.*
rm -rf latest-snapshot-INDEX.sh*
echo "Snapshot restored"


0 comments on commit 0ae0472

Please sign in to comment.