> For the complete documentation index, see [llms.txt](https://services.kjinc.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://services.kjinc.io/testnet-service/bitcanna/snapshot.md).

# Snapshot

## Snapshot(every six hours)

**Pruning**: custom/100/0/10 - **Indexer**: kv

#### Automatically

<pre><code><strong>#Download bcna-testnet_snapshot.sh
</strong>wget https://snapshot-bcna-testnet.kjinc.io/bcna-testnet_snapshot.sh

#Make bcna_snapshot executable
chmod +x bcna-testnet_snapshot.sh

#Execute bcna_snapshot.sh
./bcna-testnet_snapshot.sh

#Delete the snapshot script
rm -v bcna-testnet_snapshot.sh
</code></pre>

#### Manually

Block num refer to [https://snapshot-bcna-testnet.kjinc.io](https://snapshot-bcna.testnet.kjinc.io)

```bash
#Install lz4
sudo apt update
sudo apt install snapd -y
sudo snap install lz4

#Download snapshot
wget https://snapshot-bcna-testnet.kjinc.io/bcna-testnet_[block_num].tar.lz4

#Stop and reset your node
systemctl stop bcnad && bcnad tendermint unsafe-reset-all --home $HOME/.bcna --keep-addr-book

#Decompress snapshot
lz4 -c -d bcna-testnet_[block_num].tar.lz4  | tar -x -C $HOME/.bcna

#Restart your node and monitor
systemctl restart bcnad && journalctl -fu bcnad -o cat

#Remove the snapshot
rm -v bcna-testnet_[block_num].tar.lz4
```
