Skip to content

Latest commit

 

History

History
83 lines (56 loc) · 3.61 KB

snapshot.md

File metadata and controls

83 lines (56 loc) · 3.61 KB

Pocket Snapshotter

tl;dr Access Liquify's Pocket Snapshotter here

Public snapshots

If you're looking for Pocket native blockchain data snapshots, they are provided by Liquify LTD and can be viewed via the Explorer link: File Explorer here.

https://pocket-snapshot.liquify.com

Update Frequency

Snapshots are updated every Monday at 00:00 UTC. The snapshots are generated on the Master (UK) and then sent over to the US and JP regions.

Mirrors

The pocket snapshot link above is a global endpoint which is available in 3 different regions (UK, US west, Japan). The individual regions can also be accessed on the following links.

Note: If accessing the snapshots on Monday it may be best to use the UK (Master) endpoint since there will be a 4-12 hour delay in updating the slaves in the other regions.

Download using CLI

The snapshot repos hold the last 3 weeks of snapshots. The latest one being referenced by the file latest.txt and latest_compressed.txt.

To copy-paste the commands below, please update POCKET_DATA_DIR appropriately.

export POCKET_DATA_DIR=<absolute path to your data dir>

Uncompressed

[ -d ${POCKET_DATA_DIR} ] || mkdir -p ${POCKET_DATA_DIR}
aria2c -s6 -x6 "https://pocket-snapshot.liquify.com/files/$(curl -s https://pocket-snapshot.liquify.com/files/latest.txt)"
tar xvf "$latestFile" -C ${POCKET_DATA_DIR}

Uncompressed Inline (slower but smaller disk footprint)

The below snippet will download and extract the snapshot inline. This may be beneficial if you have constrained disk space and cannot afford to store both the temp archive and extracted datadir.

[ -d ${POCKET_DATA_DIR} ] || mkdir -p ${POCKET_DATA_DIR}
wget -c "https://pocket-snapshot.liquify.com/files/$(curl -s https://pocket-snapshot.liquify.com/files/latest.txt)" -O - \
  | tar -xv -C ${POCKET_DATA_DIR}

Compressed

[ -d ${POCKET_DATA_DIR} ] || mkdir -p ${POCKET_DATA_DIR}
aria2c -s6 -x6 "https://pocket-snapshot.liquify.com/files/$(curl -s https://pocket-snapshot.liquify.com/files/latest_compressed.txt)"
lz4 -c -d "$latestFile" | tar -x -C ${POCKET_DATA_DIR}

Compressed Inline (slower but smaller disk footprint)

[ -d ${POCKET_DATA_DIR} ] || mkdir -p ${POCKET_DATA_DIR}
wget -c "https://pocket-snapshot.liquify.com/files/$(curl -s https://pocket-snapshot.liquify.com/files/latest_compressed.txt)" -O - \
  | lz4 -d - | tar -xv -C ${POCKET_DATA_DIR}

Issues

For any snapshot related issues, please email Liquify or in the node-chat channel on discord.

Screenshot