Skip to content

Snapshots of the pocket-core blockchain data and mechanisms to download it

License

Notifications You must be signed in to change notification settings

thunderhead-labs/pocket-snapshots

 
 

Repository files navigation

Pocket blockchain snapshots

Snapshots for pocket blockchain data

Overview

This snapshots take places every 12 hours and current name format for them is pocket-network-data-hhdd-rc-x.x.x.x for both .tar and .tar.gz respectively

Also, every 12 hours all of our example and download links gets updated via a script so you always get the latest one. If for any reason the latest doesn't work. you can feel free to take a old snapshot from the commit history

Below are the mechanisms in order to download a snapshot of our datadir using storj

Usage

Download via direct link

Compressed

Tar

In-place wget and extract

Extracts the .tar on the fly without needing 2x the space

Tar

cd node1/data

wget -qO- https://link.us1.storjshare.io/raw/ju4x2h2kpfwesydtgwlsawgllv6a/pocket-blockchain/pocket-network-data-0606-RC-0.7.0.1.tar | tar xvf -

Download and extract via uplink

This method requires 2x of the space required for the blockchain data. But it's the most fastest download method

We assume you have downloaded uplink and that you exported the env variable below:

export UPLINK_DOWN=147A7s3UVY6g4DhxdatsM7QMofNBJJfvcq5w9XuYjU2HrmEbr4JSbRy3NQu3mijqk7T8in1PYEAdcf11dd5yhJ4eDAn4UMppBgqcN49f2tHVcGhRV2McpvyTm4U22uXH35h14JA1YXiGdUFDss7ThTnFnPYY8uRTxmtG2UrdW9LZkmuJysNF1sU8anEGcZnGQuYWViAzVx2VwtYTrYQE5CXPQotB2rnGwFaUY9vVeTCKFC8yiwZLHxhPJdZaexrZPbBTaf1xvmuyarMchkxvbn8K7pLXfw7n2xGArJavvRK86Nj1SrRr5ws9ku9i24WbGddKWz4SNaZgUH63Wm65yK8m91kgeHLDhhhR
Tar
uplink --access $UPLINK_DOWN cp sj://pocket-blockchain/pocket-network-data-0606-RC-0.7.0.1.tar ./pocket.tar --parallelism 5

tar xvf pocket.tar -C node1/data
Compresssed
uplink --access $UPLINK_DOWN cp sj://pocket-blockchain/pocket-network-data-0606-RC-0.7.0.1.tar.gz ./pocket.tar.gz --parallelism 5

tar zxvf pocket.tar.gz -C node1/data

Download and extracts via wget

This methods require 2x of the space required for the blockchain data (approx 105gb for the time of this writting)

Compressed

wget -O pocket.tar.gz https://link.us1.storjshare.io/raw/jw6lzix6twan7ez2vddjl7nb3beq/pocket-blockchain/pocket-network-data-0606-RC-0.7.0.1.tar.gz

tar zxvf pocket.tar -C node1/data

Tar

wget -O pocket.tar https://link.us1.storjshare.io/raw/ju4x2h2kpfwesydtgwlsawgllv6a/pocket-blockchain/pocket-network-data-0606-RC-0.7.0.1.tar

tar xvf pocket.tar -C node1/data

Download via Rclone

Script

Assuming you have rclone installed:

rclone config # Will show the rclone config location. copy the location and replace it with our rclone.config
cp rclone.config ~/.config/rclone/rclone.conf 

time rclone copy --progress --s3-upload-concurrency 32 --s3-chunk-size 256M  downloader:pocket-blockchain/pocket-network-data-0606-RC-0.7.0.1.tar ./

mkdir -p node1/data
tar xvf ./pocket-network-data-RC-0.7.0.1.tar -C node1/data

or just:

sh download.sh 
Docker rclone

You can build/run the docker image, which will download/untar the pocket blockchain snapshot on the folder ./node1/data

docker build -t pocket-blockchain-downloader . --no-cache && docker run -v  $(pwd)/node1/:/root/node1  -it pocket-blockchain-downloader

License

This project is licensed under the MIT License; see the LICENSE.md file for details.

About

Snapshots of the pocket-core blockchain data and mechanisms to download it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 94.6%
  • Dockerfile 5.4%