How to Backup Your Avail Validator
A comprehensive guide on backup tasks essential for maintaining an Avail Validator.
Understanding Validator Directories
Directory Structure
└── chains
└── da_testnet
└── db
└── keystore
└── network
Directory Descriptions
- db: This directory contains the database files, which store blockchain state, transaction history, and other data.
- keystore: This is where the encrypted key files for your Validator are stored.
- network: This directory contains configuration files related to network connectivity and peer management.
--base-path parameter.
Step 1: Re-Sync or Restore Snapshot
To Re-Sync from Genesis
avail purge-chainTo Restore a Database Snapshot
- Stop your node.
- Delete existing chain data.
- Download a snapshot from another node.
- Restore the snapshot to the
dbfolder.
Note
WARP SYNC
Warp sync will be available in future releases, allowing quicker node setup.
Warp sync will be available in future releases, allowing quicker node setup.
Step 2: Backup Keystore
To Move Keystore to a Backup Node
- Ensure the primary node is offline.
- Transfer the keystore to a backup node that is in sync.
Error
EQUIVIVOCAITON RISK
Never run two nodes with identical keys at the same time to avoid double-signing.
Never run two nodes with identical keys at the same time to avoid double-signing.
How is this guide?