Is there a "latest" URL for https://snapshots-tezos.giganode.io/?
I mean, if I want to download the latest rolling snapshot, I'd like to retrieve something like https://snapshots-tezos.giganode.io/latest.rolling
Tezos Stack Exchange is a question and answer site for users, experts, and developers of the Tezos blockchain project. It only takes a minute to sign up.
Sign up to join this communityIs there a "latest" URL for https://snapshots-tezos.giganode.io/?
I mean, if I want to download the latest rolling snapshot, I'd like to retrieve something like https://snapshots-tezos.giganode.io/latest.rolling
xtz-shots.io has "latest snapshot" links.
For example, to download the most recent mainnet rolling snapshot:
wget https://mainnet.xtz-shots.io/rolling
More details can be found on XTZ-shots documentation page
Ideally the xtz-shots.io answer will suffice for you, but if you really want to use giganode, or want to have a fall-back mechanism to giganode, you can try a simple one liner to extract the latest URL from their webpage.
A rudimentary approach to extract the latest mainnet rolling snapshot:
curl -s https://snapshots-tezos.giganode.io/ | grep "<a href=\"https://snapshots-tezos.giganode.io/snapshots/mainnet_" | grep rolling | sed -En "s/.*href=\"(.*).rolling\".*/\1\.rolling/p" | head -1
As of this writing (27 July 2022) this is the output of that command:
This is not ideal, as it can easily break if they make any changes to their HTML.