# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://services.kjinc.io/testnet-service/bitcanna/snapshot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
