Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit b77d95b

Browse files
Apply suggestions from code review
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 8a35812 commit b77d95b

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

guides/evm-reth-backup.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ You will need to stop both rollkit and reth-rollkit on the fullnode stack, accor
4848
Example for docker-compose based setup:
4949
```bash
5050
# Stop services in correct order
51-
docker compose stop rollkit-evm-single
52-
docker compose stop rollkit-reth
51+
docker compose stop fullnode
52+
docker compose stop reth-rollkit
5353

5454
# Verify all containers are stopped
5555
docker compose ps
@@ -59,7 +59,10 @@ docker compose ps
5959

6060
```bash
6161
# Create backup directory
62-
BACKUP_BASE_DIR=""
62+
# Create backup directory
63+
# IMPORTANT: Set your backup base directory and reth-rollkit data directory paths
64+
BACKUP_BASE_DIR="/path/to/backups"
65+
RETH_ROLLKIT_DATADIR="/path/to/reth-rollkit/datadir"
6366
mkdir -p "${BACKUP_BASE_DIR}"
6467

6568
# Set backup timestamp
@@ -74,7 +77,7 @@ sha256sum "${BACKUP_BASE_DIR}/reth_state_${BACKUP_DATE}.tar.zst" > "${BACKUP_BAS
7477

7578
### 4. Restart services
7679

77-
You will need to stop both rollkit and reth-rollkit on the fullnode stack, according to your setup.
80+
You will need to restart both rollkit and reth-rollkit on the fullnode stack, according to your setup.
7881

7982
Example for docker-compose based setup:
8083
```bash
@@ -101,7 +104,7 @@ Add the following content
101104
set -euo pipefail
102105

103106
# Configuration
104-
RETH_ROLLKIT_DATADIR=""
107+
RETH_ROLLKIT_DATADIR="" # IMPORTANT: Set this to your reth-rollkit data directory path
105108
BACKUP_BASE_DIR="${BACKUP_BASE_DIR:-/backup/rollkit}"
106109
REMOTE_BACKUP="${REMOTE_BACKUP:-backup-server:/backups/rollkit}"
107110
RETENTION_DAYS="${RETENTION_DAYS:-7}"
@@ -120,11 +123,12 @@ log() {
120123

121124
check_sync_status() {
122125
# Check Rollkit node health
123-
local rollkit_status=$(curl -sX POST \
126+
# Check Rollkit node health
127+
curl -fsX POST \
124128
-H "Content-Type: application/json" \
125129
-H "Connect-Protocol-Version: 1" \
126130
-d "{}" \
127-
http://${FULLNODE_IP}:${FULLNODE_RPC_PORT}/rollkit.v1.HealthService/Livez)
131+
"http://${FULLNODE_IP}:${FULLNODE_RPC_PORT}/rollkit.v1.HealthService/Livez" > /dev/null
128132

129133
# Check reth sync status
130134
local sync_status=$(curl -sX POST \

0 commit comments

Comments
 (0)