This is an excerpt of the Ledger Snapshots guide
that briefly describes the commands you need to execute to quickly restore the database of the Validator Node.
Please refer to the original guide for detailed explanations.
apt install zstd
# if you are running via Docker radixnode docker stop -f radix-fullnode-compose.yml # if you are running via systemd sudo systemctl stop radixdlt-node
3a. From CDN
- Browse the Latest Snapshots on CDN.
Usually the latest backup would have the today’s date (they are uploaded daily at ~00:15 UTC).
- Set the date to a variable, for example:
- Download with curl or wget:
curl -O https://radix-snapshots.b-cdn.net/$DIR/RADIXDB-no-api.tar.zst
This should give you the fastest download speed. For some weird reason, in some locations, this is very, very slow.
If you see that the download speed is less than 25MB/sec - try cancelling the download and using option
3b. From a server in Germany
- Set connection details to a variable
- Get the latest available backup and write it into a variable
You might need to confirm adding the server to known hosts.
DIR=$(echo "ls -1 ????-??-??" | sftp $SSH_HOST | grep -v "sftp> " | sed 's/.$//' | tail -n 1)
When prompted for a password, enter:
- Make sure that it was set properly:
- Download the snapshot
You might need to confirm adding to known hosts again and enter the same password one more time.
scp -P 23 $SSH_HOST:$DIR/RADIXDB-no-api.tar.zst ./
/RADIXDB is the directory where Node’s ledger DB resides. Change it if needed.
rm -rf /RADIXDB/* tar --use-compress-program=zstdmt -xvf RADIXDB-no-api.tar.zst -C /RADIXDB/
# if you are running via Docker radixnode docker start -f radix-fullnode-compose.yml -t radix://email@example.com # if you are running via systemd sudo systemctl start radixdlt-node