> For the complete documentation index, see [llms.txt](https://yoyo-5.gitbook.io/canto/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yoyo-5.gitbook.io/canto/yun-xing-jie-dian/yan-zheng-zhe/kuai-zhao.md).

# 快照

## 创建快照&#x20;

## 为快照创建文件夹

```
mkdir -p $HOME/snapshots/canto
```

克隆 github 仓库

```
git clone https://github.com/SiddarthVijay/cosmos-snapshots.git
cd cosmos-snapshots
git checkout patch/v1-canto
```

## 创建新快照

```
./canto_snapshot.sh
```

## 使用快照&#x20;

快照也可在 [Polkachu ](https://polkachu.com/tendermint_snapshots/canto)上使用&#x20;

## 使用快照&#x20;

备份$HOME/.canto/priv\_validator\_state.json（以下步骤无法恢复）

```
sudo systemctl stop cantod
cantod unsafe-reset-all
cd $HOME/.cantod
wget -O <snapshot_file>.tar <host_url>
tar -xvf <snapshot_file>.tar 
```

重启节点

```
sudo systemctl start cantod
# Watch logs
journalctl -u cantod -f
```
