Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MANTRA-Chain-Tech/auto-snapshot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Snapshot

Auto Snapshot is a tool designed to run as StatefulJob crd in cosmos-operator to automate the process of creating and uploading snapshots of blockchain data. This tool is particularly useful for blockchain nodes that need to periodically back up their data.

Features

  • Automated Compression: Compresses blockchain data directories into a single .lz4 file.
  • Uploader Support: Supports uploading the compressed file to AWS S3/cloudflare R2.
  • Configurable: Allows configuration through command-line flags and environment variables.
  • Storage Optimization: Can reduces the storage size on local machines by compressing the data and uploading it to a remote storage via I/O pipeline without local storage footprint.

Installation

To install the tool, clone the repository and build the binary:

git clone https://github.com/allthatjazzleo/auto-snapshot.git
cd auto-snapshot
go build -o auto-snapshot main.go

Usage

Run the tool with the following command:

./auto-snapshot --chain-home <path_to_chain_home> [--keep-local] [--uploader <uploader_type>]

Environment Variables

  • AWS_S3_BUCKET: The S3 bucket where the snapshot will be uploaded.
  • AWS_ACCESS_KEY_ID: (Optional) Your AWS access key ID.
  • AWS_SECRET_ACCESS_KEY: (Optional) Your AWS secret access key.
  • AWS_S3_API_ENDPOINT: (Optional) Custom S3 API endpoint.

About

Chain Snapshotting Tool leveraging StatefulJobs as a part of the Cosmos Operator CRD in Kubernetes

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 76.9%
  • Dockerfile 22.5%
  • Makefile 0.6%