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

# Snapshot

<figure><img src="https://github.com/takeshi-val/Logo/raw/main/lava.png" alt="" width="150"><figcaption></figcaption></figure>

{% hint style="info" %}
Snapshots allows a new node to join the network by recovering application state from a backup file. Snapshot contains compressed copy of chain data directory. To keep backup files as small as plausible, snapshot server is periodically beeing state-synced.
{% endhint %}

Snapshots are taken automatically every 6 hours starting at **05:45 UTC**

**pruning**: 100/0/19 | **indexer**: null | **version tag**: v0.4.4

| BLOCK | AGE     | DOWNLOAD                                                                                  |
| ----- | ------- | ----------------------------------------------------------------------------------------- |
| 53509 | 3 hours | [snapshot (3.62 GB)](https://snapshots.takeshi.team/lava-testnet/snapshot_latest.tar.lz4) |

## Instructions

### Stop the service and reset the data

```bash
sudo systemctl stop lavad
cp $HOME/.lava/data/priv_validator_state.json $HOME/.lava/priv_validator_state.json.backup
rm -rf $HOME/.lava/data
```

### Download latest snapshot

```bash
curl -L https://snapshots.takeshi.team/lava-testnet/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.lava
mv $HOME/.lava/priv_validator_state.json.backup $HOME/.lava/data/priv_validator_state.json
```

### Restart the service and check the log

```bash
sudo systemctl start lavad && sudo journalctl -u lavad -f --no-hostname -o cat
```
