LogoLogo
Block ExplorerDiscordTwitterMirror
  • What Is Canto?
  • Free Public Infrastructure
    • NOTE
    • Canto Lending Market
    • Canto DEX
  • Canto Neofinance
    • Overview
    • Application Specific Dollar
  • User Guides
    • Connecting to Canto
    • Bridging Assets
      • Bridging to Canto
      • Bridging from Canto
      • Synapse Bridge
      • Celer cBridge
    • Providing Liquidity
    • Lending & Borrowing
    • Staking
    • Governance
  • EVM Development
    • Overview
    • Quickstart Guide
    • NOTE, DEX, and Lending Market
    • Contract Secured Revenue (CSR)
    • Verifying Contracts
    • Contract Addresses
    • Testnet
  • Running a Node
    • Validators
      • Quickstart Guide
      • Useful Commands
      • Snapshots
      • FAQ
      • Troubleshooting
      • Uptime
      • Slashing
    • Archive Node
    • Graph Node (Subgraphs)
  • Technical Reference
    • Application Specific Dollar
      • asdOFT
      • asdRouter
      • asdUSDC
    • Liquidity Coordinator
      • VotingEscrow
      • GaugeController
      • LendingLedger
      • LiquidityGauge
    • Architecture & Design
      • Onboarding Module
      • Gravity Bridge
      • NOTE Design
      • Canto Lending Protocol
      • IBC Token Recovery
    • Governance
      • Governance Module
      • GovShuttle Module
      • Lending Market Governance
    • Tokenomics
    • Audits
Powered by GitBook
On this page
  • Creating Snapshot
  • Create folder for snapshots
  • Clone github repo
  • Create new snapshot
  • Automation
  • Consuming Snapshot
  • Use Snapshot
  • Restart Node
  1. Running a Node
  2. Validators

Snapshots

Creating Snapshot

Create folder for snapshots

mkdir -p $HOME/snapshots/canto

Clone github repo

git clone https://github.com/SiddarthVijay/cosmos-snapshots.git
cd cosmos-snapshots
git checkout patch/v1-canto

Create new snapshot

./canto_snapshot.sh

Automation

You can add script to the cron

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

Consuming Snapshot

Use Snapshot

Backup $HOME/.canto/priv_validator_state.json (cannot be recovered after following steps)

sudo systemctl stop cantod
cantod unsafe-reset-all
cd $HOME/.cantod
wget -O <snapshot_file>.tar <host_url>
tar -xvf <snapshot_file>.tar 

Restart Node

sudo systemctl start cantod
# Watch logs
journalctl -u cantod -f

PreviousUseful CommandsNextFAQ

Last updated 1 year ago

Snapshots also available on

Polkachu