Skip to content

Commit decf9d5

Browse files
committed
Simplify snapshot sections to single archive instructions
Remove duplicate tabs for archive/pruned snapshots since the same archive snapshots are used for both node types.
1 parent 1218571 commit decf9d5

File tree

2 files changed

+80
-174
lines changed

2 files changed

+80
-174
lines changed

node-infrastructure/run-a-node/parachain-rpc.md

Lines changed: 40 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -114,93 +114,46 @@ Select the best option for your project, then use the steps in the following tab
114114
mkdir -p my-node-data/chains/people-polkadot/db
115115
mkdir -p my-node-data/chains/polkadot/db
116116
```
117-
2. Download the appropriate snapshots using the following commands:
118-
119-
=== "Archive Node"
120-
121-
Archive node setup maintains complete parachain history. Download both parachain archive and relay chain pruned snapshots:
122-
123-
**Parachain archive snapshot** (People Chain example):
124-
```bash
125-
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
126-
export SNAPSHOT_URL_PARACHAIN="https://snapshots.polkadot.io/polkadot-people-rocksdb-archive/LATEST"
127-
128-
rclone copyurl $SNAPSHOT_URL_PARACHAIN/files.txt files.txt
129-
rclone copy --progress --transfers 20 \
130-
--http-url $SNAPSHOT_URL_PARACHAIN \
131-
--no-traverse --http-no-head --disable-http2 \
132-
--inplace --no-gzip-encoding --size-only \
133-
--retries 6 --retries-sleep 10s \
134-
--files-from files.txt :http: my-node-data/chains/people-polkadot/db/
135-
136-
rm files.txt
137-
```
138-
139-
**Relay chain pruned snapshot** (~822 GB):
140-
```bash
141-
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
142-
export SNAPSHOT_URL_RELAY="https://snapshots.polkadot.io/polkadot-paritydb-prune/LATEST"
143-
144-
rclone copyurl $SNAPSHOT_URL_RELAY/files.txt files.txt
145-
rclone copy --progress --transfers 20 \
146-
--http-url $SNAPSHOT_URL_RELAY \
147-
--no-traverse --http-no-head --disable-http2 \
148-
--inplace --no-gzip-encoding --size-only \
149-
--retries 6 --retries-sleep 10s \
150-
--files-from files.txt :http: my-node-data/chains/polkadot/db/
151-
152-
rm files.txt
153-
```
154-
155-
**rclone parameters:**
156-
157-
- `--transfers 20`: Uses 20 parallel transfers for faster download
158-
- `--retries 6`: Automatically retries failed transfers up to 6 times
159-
- `--retries-sleep 10s`: Waits 10 seconds between retry attempts
160-
- `--size-only`: Only transfers if sizes differ (prevents unnecessary re-downloads)
161-
162-
=== "Pruned Node"
163-
164-
Pruned node setup keeps recent state for smaller storage. Since no pruned parachain snapshots are available for most system parachains, this setup uses the parachain archive snapshot with the relay chain pruned snapshot.
165-
166-
**Parachain archive snapshot** (People Chain example, ~71 GB):
167-
```bash
168-
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
169-
export SNAPSHOT_URL_PARACHAIN="https://snapshots.polkadot.io/polkadot-people-rocksdb-archive/LATEST"
170-
171-
rclone copyurl $SNAPSHOT_URL_PARACHAIN/files.txt files.txt
172-
rclone copy --progress --transfers 20 \
173-
--http-url $SNAPSHOT_URL_PARACHAIN \
174-
--no-traverse --http-no-head --disable-http2 \
175-
--inplace --no-gzip-encoding --size-only \
176-
--retries 6 --retries-sleep 10s \
177-
--files-from files.txt :http: my-node-data/chains/people-polkadot/db/
178-
179-
rm files.txt
180-
```
181-
182-
**Relay chain pruned snapshot** (~822 GB):
183-
```bash
184-
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
185-
export SNAPSHOT_URL_RELAY="https://snapshots.polkadot.io/polkadot-paritydb-prune/LATEST"
186-
187-
rclone copyurl $SNAPSHOT_URL_RELAY/files.txt files.txt
188-
rclone copy --progress --transfers 20 \
189-
--http-url $SNAPSHOT_URL_RELAY \
190-
--no-traverse --http-no-head --disable-http2 \
191-
--inplace --no-gzip-encoding --size-only \
192-
--retries 6 --retries-sleep 10s \
193-
--files-from files.txt :http: my-node-data/chains/polkadot/db/
194-
195-
rm files.txt
196-
```
197-
198-
**rclone parameters:**
199-
200-
- `--transfers 20`: Uses 20 parallel transfers for faster download
201-
- `--retries 6`: Automatically retries failed transfers up to 6 times
202-
- `--retries-sleep 10s`: Waits 10 seconds between retry attempts
203-
- `--size-only`: Only transfers if sizes differ (prevents unnecessary re-downloads)
117+
2. Download the snapshots:
118+
119+
**Parachain archive snapshot** (People Chain example, ~71 GB):
120+
```bash
121+
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
122+
export SNAPSHOT_URL_PARACHAIN="https://snapshots.polkadot.io/polkadot-people-rocksdb-archive/LATEST"
123+
124+
rclone copyurl $SNAPSHOT_URL_PARACHAIN/files.txt files.txt
125+
rclone copy --progress --transfers 20 \
126+
--http-url $SNAPSHOT_URL_PARACHAIN \
127+
--no-traverse --http-no-head --disable-http2 \
128+
--inplace --no-gzip-encoding --size-only \
129+
--retries 6 --retries-sleep 10s \
130+
--files-from files.txt :http: my-node-data/chains/people-polkadot/db/
131+
132+
rm files.txt
133+
```
134+
135+
**Relay chain pruned snapshot** (~822 GB):
136+
```bash
137+
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
138+
export SNAPSHOT_URL_RELAY="https://snapshots.polkadot.io/polkadot-paritydb-prune/LATEST"
139+
140+
rclone copyurl $SNAPSHOT_URL_RELAY/files.txt files.txt
141+
rclone copy --progress --transfers 20 \
142+
--http-url $SNAPSHOT_URL_RELAY \
143+
--no-traverse --http-no-head --disable-http2 \
144+
--inplace --no-gzip-encoding --size-only \
145+
--retries 6 --retries-sleep 10s \
146+
--files-from files.txt :http: my-node-data/chains/polkadot/db/
147+
148+
rm files.txt
149+
```
150+
151+
**rclone parameters:**
152+
153+
- `--transfers 20`: Uses 20 parallel transfers for faster download
154+
- `--retries 6`: Automatically retries failed transfers up to 6 times
155+
- `--retries-sleep 10s`: Waits 10 seconds between retry attempts
156+
- `--size-only`: Only transfers if sizes differ (prevents unnecessary re-downloads)
204157

205158
3. Launch the parachain node using the official [Parity Docker image](https://hub.docker.com/r/parity/polkadot-parachain){target=\_blank}:
206159

node-infrastructure/run-a-node/polkadot-hub-rpc.md

Lines changed: 40 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -87,93 +87,46 @@ Select the best option for your project, then use the steps in the following tab
8787
mkdir -p my-node-data/chains/asset-hub-polkadot/db
8888
mkdir -p my-node-data/chains/polkadot/db
8989
```
90-
2. Download the appropriate snapshots using the following commands:
91-
92-
=== "Archive Node"
93-
94-
Archive node setup maintains complete parachain history (~1.2 TB total). Download both Asset Hub archive and Relay chain pruned snapshots:
95-
96-
**Asset Hub archive snapshot** (~392 GB):
97-
```bash
98-
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
99-
export SNAPSHOT_URL_ASSET_HUB="https://snapshots.polkadot.io/polkadot-asset-hub-paritydb-archive/LATEST"
100-
101-
rclone copyurl $SNAPSHOT_URL_ASSET_HUB/files.txt files.txt
102-
rclone copy --progress --transfers 20 \
103-
--http-url $SNAPSHOT_URL_ASSET_HUB \
104-
--no-traverse --http-no-head --disable-http2 \
105-
--inplace --no-gzip-encoding --size-only \
106-
--retries 6 --retries-sleep 10s \
107-
--files-from files.txt :http: my-node-data/chains/asset-hub-polkadot/db/
108-
109-
rm files.txt
110-
```
111-
112-
**Relay chain pruned snapshot** (~822 GB):
113-
```bash
114-
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
115-
export SNAPSHOT_URL_RELAY="https://snapshots.polkadot.io/polkadot-paritydb-prune/LATEST"
116-
117-
rclone copyurl $SNAPSHOT_URL_RELAY/files.txt files.txt
118-
rclone copy --progress --transfers 20 \
119-
--http-url $SNAPSHOT_URL_RELAY \
120-
--no-traverse --http-no-head --disable-http2 \
121-
--inplace --no-gzip-encoding --size-only \
122-
--retries 6 --retries-sleep 10s \
123-
--files-from files.txt :http: my-node-data/chains/polkadot/db/
124-
125-
rm files.txt
126-
```
127-
128-
**rclone parameters:**
129-
130-
- `--transfers 20`: Uses 20 parallel transfers for faster download
131-
- `--retries 6`: Automatically retries failed transfers up to 6 times
132-
- `--retries-sleep 10s`: Waits 10 seconds between retry attempts
133-
- `--size-only`: Only transfers if sizes differ (prevents unnecessary re-downloads)
134-
135-
=== "Pruned Node"
136-
137-
Pruned node setup keeps recent state for smaller storage. Since no pruned Asset Hub snapshot is available, this setup uses the Asset Hub archive snapshot with the Relay chain pruned snapshot (~1.2 TB total).
138-
139-
**Asset Hub archive snapshot** (~392 GB):
140-
```bash
141-
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
142-
export SNAPSHOT_URL_ASSET_HUB="https://snapshots.polkadot.io/polkadot-asset-hub-paritydb-archive/LATEST"
143-
144-
rclone copyurl $SNAPSHOT_URL_ASSET_HUB/files.txt files.txt
145-
rclone copy --progress --transfers 20 \
146-
--http-url $SNAPSHOT_URL_ASSET_HUB \
147-
--no-traverse --http-no-head --disable-http2 \
148-
--inplace --no-gzip-encoding --size-only \
149-
--retries 6 --retries-sleep 10s \
150-
--files-from files.txt :http: my-node-data/chains/asset-hub-polkadot/db/
151-
152-
rm files.txt
153-
```
154-
155-
**Relay chain pruned snapshot** (~822 GB):
156-
```bash
157-
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
158-
export SNAPSHOT_URL_RELAY="https://snapshots.polkadot.io/polkadot-paritydb-prune/LATEST"
159-
160-
rclone copyurl $SNAPSHOT_URL_RELAY/files.txt files.txt
161-
rclone copy --progress --transfers 20 \
162-
--http-url $SNAPSHOT_URL_RELAY \
163-
--no-traverse --http-no-head --disable-http2 \
164-
--inplace --no-gzip-encoding --size-only \
165-
--retries 6 --retries-sleep 10s \
166-
--files-from files.txt :http: my-node-data/chains/polkadot/db/
167-
168-
rm files.txt
169-
```
170-
171-
**rclone parameters:**
172-
173-
- `--transfers 20`: Uses 20 parallel transfers for faster download
174-
- `--retries 6`: Automatically retries failed transfers up to 6 times
175-
- `--retries-sleep 10s`: Waits 10 seconds between retry attempts
176-
- `--size-only`: Only transfers if sizes differ (prevents unnecessary re-downloads)
90+
2. Download the snapshots (~1.2 TB total):
91+
92+
**Asset Hub archive snapshot** (~392 GB):
93+
```bash
94+
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
95+
export SNAPSHOT_URL_ASSET_HUB="https://snapshots.polkadot.io/polkadot-asset-hub-paritydb-archive/LATEST"
96+
97+
rclone copyurl $SNAPSHOT_URL_ASSET_HUB/files.txt files.txt
98+
rclone copy --progress --transfers 20 \
99+
--http-url $SNAPSHOT_URL_ASSET_HUB \
100+
--no-traverse --http-no-head --disable-http2 \
101+
--inplace --no-gzip-encoding --size-only \
102+
--retries 6 --retries-sleep 10s \
103+
--files-from files.txt :http: my-node-data/chains/asset-hub-polkadot/db/
104+
105+
rm files.txt
106+
```
107+
108+
**Relay chain pruned snapshot** (~822 GB):
109+
```bash
110+
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
111+
export SNAPSHOT_URL_RELAY="https://snapshots.polkadot.io/polkadot-paritydb-prune/LATEST"
112+
113+
rclone copyurl $SNAPSHOT_URL_RELAY/files.txt files.txt
114+
rclone copy --progress --transfers 20 \
115+
--http-url $SNAPSHOT_URL_RELAY \
116+
--no-traverse --http-no-head --disable-http2 \
117+
--inplace --no-gzip-encoding --size-only \
118+
--retries 6 --retries-sleep 10s \
119+
--files-from files.txt :http: my-node-data/chains/polkadot/db/
120+
121+
rm files.txt
122+
```
123+
124+
**rclone parameters:**
125+
126+
- `--transfers 20`: Uses 20 parallel transfers for faster download
127+
- `--retries 6`: Automatically retries failed transfers up to 6 times
128+
- `--retries-sleep 10s`: Waits 10 seconds between retry attempts
129+
- `--size-only`: Only transfers if sizes differ (prevents unnecessary re-downloads)
177130
3. Launch Polkadot Hub Node using the official [Parity Docker image](https://hub.docker.com/r/parity/polkadot-parachain){target=\_blank}:
178131

179132
=== "Archive Node"

0 commit comments

Comments
 (0)