Git Product home page Git Product logo

cosmos-snapshots's Introduction

cosmos-snapshots

List of snapshots:
http://135.181.60.250/ - Akash Network (Mainnet) truncated via statesync
http://135.181.60.250:8081/ - Sifchain (Betanet) truncated via statesync
http://135.181.60.250:8083/ - Sentinel (Mainnet truncated via statesync
http://135.181.60.250:8084/ - Desmos (Mainnet) truncated via statesync
http://135.181.60.250:8086/ - Stargaze (Mainnet) truncated via statesync
http://135.181.60.250:8087/ - Agoric (Mainnet) truncated via statesync
http://135.181.60.250:5888/ - Osmosis (Mainnet) truncated via statesync
http://snapshots.alexvalidator.com/oasis/ - Oasis (Mainnet)
http://snapshots.alexvalidator.com/ixo/ - IXO (Mainnet)
http://snapshots.alexvalidator.com/regen/ - Regen (Mainnet)
http://snapshots.alexvalidator.com/stargaze/ - Stargaze (Mainnet)
https://snapshots.stakecraft.com/ - Juno (Mainnet)
https://cosmos-snap.staketab.com/ixo - IXO (Mainnet)
https://cosmos-snap.staketab.com/stargaze - Stargaze (Mainnet)
https://cosmos-snap.staketab.com/sifchain - Sifchain (Betanet)
https://cosmos-snap.staketab.com/comdex - Comdex (Mainnet)
https://cosmos-snap.staketab.com/axelar - Axelar (Mainnet)
https://mercury-nodes.net/kichain-snaps/ - Kichain (Mainnet)

http://135.181.60.250:5889/ - Archway (TESTNET) truncated via statesync

Akash snapshot instruction
Agoric snapshot instruction
Sifchain snapshot instruction
Sentinel snapshot instruction
Desmos snapshot instruction
Oasis snapshot instruction
Stargaze snapshot instruction
Osmosis snapshot instruction
Kichain snapshot instruction
IXO snapshot instruction(Staketab)
Sifchain snapshot instruction(Staketab)
Stargaze snapshot instruction(Staketab)
Comdex snapshot instruction(Staketab)
Axelar snapshot instruction(Staketab)

Archway snapshot instruction

MIRRORS

http://rpc01-skynet.paullovette.com/ - provided by Paul Lovette
http://162.255.116.68/snapshots/ - privded by Min (Min#6706)
https://snapshots.stakecraft.com/ - provided by Alex Novy
http://snapshots.alexvalidator.com/ - provided by Alex (Bambarello) Validator

  • Oasis
  • Stargaze
  • Regen
  • IXO
  • Sentinel

https://cosmos-snap.staketab.com/ - provided by Staketab

https://snapshots.stake2.me/ - provided by Danil Ushakov

  • Agoric
  • Akash
  • Certik
  • Gravity bridge
  • IXO
  • Osmosis
  • Sifchain
  • Stargaze

Run your own backup server with snapshots

Install requirements

sudo apt update && \
sudo apt install curl git docker.io -y

Clone github repo
git clone https://github.com/c29r3/cosmos-snapshots.git && cd cosmos-snapshots

Create folder for snapshots
mkdir $HOME/akash

Start Nginx via docker

cd $HOME; \
docker run --name nginx \
--restart always \
-v $(pwd)/default.conf:/etc/nginx/conf.d/default.conf \
-v $(pwd)/akash/:/root/ \
-p 80:80 \
-d nginx

Fill in the variables and the file akash_snapshot.sh

#!/bin/bash
CHAIN_ID="akashnet-2"
SNAP_PATH="/home/$USER/akash/akash"
LOG_PATH="/home/$USER/cosmos-snapshots/daily-logs/akash_log.txt"
DATA_PATH="/home/$USER/.akash/data/"
SERVICE_NAME="akash.service"
RPC_ADDRESS="http://localhost:26657"
SNAP_NAME=$(echo "${CHAIN_ID}_$(date '+%Y-%m-%d').tar")
OLD_SNAP=$(ls ${SNAP_PATH} | egrep -o "${CHAIN_ID}.*tar")


now_date() {
    echo -n $(TZ=":America/Los_Angeles" date '+%Y-%m-%d_%H:%M:%S')
}


log_this() {
    YEL='\033[1;33m' # yellow
    NC='\033[0m'     # No Color
    local logging="$@"
    printf "|$(now_date)| $logging\n" | tee -a ${LOG_PATH}
}

LAST_BLOCK_HEIGHT=$(curl -s ${RPC_ADDRESS}/status | jq -r .result.sync_info.latest_block_height)
log_this "LAST_BLOCK_HEIGHT ${LAST_BLOCK_HEIGHT}"

log_this "Stopping ${SERVICE_NAME}"
systemctl stop ${SERVICE_NAME}; echo $? >> ${LOG_PATH}

log_this "Creating new snapshot"
time tar cf ${HOME}/${SNAP_NAME} -C ${DATA_PATH} . &>>${LOG_PATH}

log_this "Starting ${SERVICE_NAME}"
systemctl start ${SERVICE_NAME}; echo $? >> ${LOG_PATH}

log_this "Removing old snapshot(s):"
cd ${SNAP_PATH}
rm -fv ${OLD_SNAP} &>>${LOG_PATH}

log_this "Moving new snapshot to ${SNAP_PATH}"
mv ${HOME}/${CHAIN_ID}*tar ${SNAP_PATH} &>>${LOG_PATH}


du -hs ${SNAP_PATH} | tee -a ${LOG_PATH}

log_this "Done\n---------------------------\n"

Create new snapshot
./akash_snapshot.sh

Check snapshot

MY_IP=$(curl -s 2ip.ru); \
curl -s http://${MY_IP}

Automation

You can add script to the cron

# start every day at 00:00
0 0 * * * /bin/bash -c '/root/akash_snapshot.sh'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.