> 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/nibiru/snapshot.md).

# Snapshot

<figure><img src="https://github.com/takeshi-val/Logo/raw/main/nibiru.png" alt=""><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 **00:00 UTC**

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

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

## Instructions

### Stop the service and reset the data

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

### Download latest snapshot

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

### Restart the service and check the log

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