Snapshot Recovery on Archway Network

Recovering your Archway 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 Archway 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 Archway node

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

    sudo systemctl stop archwayd

    

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/archway/archway-latest.tar.lz4

    

3. Extract the Snapshot

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

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

    

4. Restart your Archway node

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

    sudo systemctl start archwayd

    

Verifying Node Sync

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

    archwayd 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 Archway 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 Archway documentation or reach out to the support community.