Skip to content

KenCloud-Tech/snapshot-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Lotus Logo

Project Snapshot Snake

Snapshot Snake is a tool that connects to Lotus nodes and exports snapshots.

Why Snapshot Snake?

1.Export snapshots faster

2.More convenient and simple to use snapshot

3.Analysis and verification snapshot

Getting started

Go

To build Snapshot Shake, you need a working installation of Go 1.20.8 or higher:

wget -c https://golang.org/dl/go1.20.8.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local

## If you are in China, you should run
export GOPROXY=https://goproxy.cn

TIP: You'll need to add /usr/local/go/bin to your path. For most Linux distributions you can run something like:

echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc && source ~/.bashrc

See the official Golang installation instructions if you get stuck.

Build and install Snapshot Snake

Once all the dependencies are installed, you can build and install the Snapshot Snake.

  1. Clone the repository:
git clone https://github.com/kenlabs/snapshot-snake.git
cd snapshot-snake/
  1. Build the executable
go build ./cmd/ss
  1. Initialize configuration information
./ss cfg init
  1. Edit configuration
vim ~/.snapshot/config.toml

Modify according to your own configuration.

  1. Start daemon
./ss daemon run

It will take some time to fill the dag and cache.

  1. Check the TipSet height stored in the cache
./ss height
  1. Export snapshot
./ss export snapshot xxx.car

Architecture

image-20230924085554488

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages