Snapshot Recovery on Coreum Network

Recovering your Coreum node from a snapshot is an efficient way to restore your node without syncing from genesis, significantly reducing downtime. This guide provides detailed instructions on how to use snapshots from s3.chainroot.io for recovery.

Prerequisites

Before starting the recovery process, ensure that you have:

  • A running Coreum node that you can stop and restart.
  • Sufficient disk space to accommodate the snapshot and future blocks.
  • A stable internet connection for downloading the snapshot.

Steps for Snapshot Recovery

1. Stop your Coreum node

Ensure that no processes are running that might modify the data while you’re performing the snapshot recovery.

    sudo systemctl stop cored

    

2. Download the Snapshot

Download the latest snapshot available from s3.chainroot.io. It’s recommended to use wget or curl for downloading.

    wget https://s3.chainroot.io/snapshots/coreum/coreum-latest.tar.lz4

    

3. Extract the Snapshot

Once the download is complete, extract the snapshot file to the appropriate directory, typically where your Coreum data is stored.

    lz4 -c -d coreum-latest.tar.lz4 | tar -x -C $HOME/.core

    

4. Restart your Coreum node

After successfully extracting the snapshot, restart your node. It will start syncing from the point the snapshot was taken.

    sudo systemctl start cored

    

Verifying Node Sync

After starting your node, it’s important to verify that it is syncing correctly.

    cored status

    

This command should show that your node is catching up from the snapshot height to the current block height.

Conclusion

Using snapshots for recovery can significantly reduce the time it takes to get your Coreum node operational after downtime or when migrating to new hardware. Always ensure that snapshots are obtained from reliable sources and that you have backups of your own node to prevent data loss.

For more advanced recovery options or troubleshooting, consult the Coreum documentation or reach out to the support community.