From e8c419d9381c42382577cc82fe37bd0e32216f44 Mon Sep 17 00:00:00 2001 From: karlo Date: Mon, 4 Mar 2024 18:51:59 +0200 Subject: [PATCH] celestia updated snapshots --- docs/celestia/sync/addrbook.mdx | 2 +- docs/celestia/sync/peers-seeds.mdx | 2 +- docs/celestia/sync/snapshot-archive.md | 32 ++++++++++++++++++++++++++ docs/celestia/sync/state-sync.mdx | 2 +- 4 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 docs/celestia/sync/snapshot-archive.md diff --git a/docs/celestia/sync/addrbook.mdx b/docs/celestia/sync/addrbook.mdx index ca3f68a8..a3e291be 100644 --- a/docs/celestia/sync/addrbook.mdx +++ b/docs/celestia/sync/addrbook.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 4 +sidebar_position: 5 description: AddrBook --- diff --git a/docs/celestia/sync/peers-seeds.mdx b/docs/celestia/sync/peers-seeds.mdx index fee3a723..fdf1b712 100644 --- a/docs/celestia/sync/peers-seeds.mdx +++ b/docs/celestia/sync/peers-seeds.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 3 +sidebar_position: 4 description: Live Peers / Seeds --- diff --git a/docs/celestia/sync/snapshot-archive.md b/docs/celestia/sync/snapshot-archive.md new file mode 100644 index 00000000..5a4673a1 --- /dev/null +++ b/docs/celestia/sync/snapshot-archive.md @@ -0,0 +1,32 @@ +--- +sidebar_position: 2 +description: Archival snapshot +--- + +# Archival snapshot + +> This snapshot contains the full state of the blockchain. + +import Snapshots from '@site/src/components/Snapshots'; + + + +:::info +Snapshots are taken every 24 hours. +::: + +```bash +sudo systemctl stop celestia-appd + +# make a backup +cp $HOME/.celestia-app/data/priv_validator_state.json $HOME/.celestia-app/priv_validator_state.json.backup + +# reset your node and download a snapshot +celestia-appd tendermint unsafe-reset-all --home $HOME/.celestia-app --keep-addr-book +wget | lz4 -dc - | tar -xf - -C $HOME/.celestia-app + +# replace the priv_validator_state.json you have backed up +mv $HOME/.celestia-app/priv_validator_state.json.backup $HOME/.celestia-app/data/priv_validator_state.json + +sudo systemctl restart celestia-appd && sudo journalctl -u celestia-appd -f -o cat +``` \ No newline at end of file diff --git a/docs/celestia/sync/state-sync.mdx b/docs/celestia/sync/state-sync.mdx index 9f8253be..d3212e14 100644 --- a/docs/celestia/sync/state-sync.mdx +++ b/docs/celestia/sync/state-sync.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 2 +sidebar_position: 4 description: State Sync ---