Shard Rush moves large files between Linux machines faster than rsync and scp over long-distance links, using parallel encrypted streams, verified resume, and delta transfers that resend only what changed. On a real US-to-Germany internet link, Shard Rush 0.3.0 pulled a 256 MiB file 4.8× faster than rsync with 8 streams and pushed small revisions faster than rsync too. Every shard is checked with SHA-256 before the file is published.
Use it to copy model weights, disk images, backups and other large files
between servers, cloud GPU hosts and workstations you control. Both ends run
the same shardrush executable; public HTTP(S) downloads need only the client.
- Parallel streams over TLS 1.3 with certificate pinning and token authentication, with stream counts that adapt to the path.
- Delta transfers: rebuild a new version from the old file already on the receiver, even after insertions shift the data.
- Verified resume: rerun the same command after an interruption.
- Sparse files and Zstandard compression.
- Fast HTTP(S) downloads with safe range sharding.
- One round trip to open a session; optional experimental QUIC transport.
Download 0.3.0 · Real-network benchmarks · SRP/2 benchmarks with raw results · Protocol and interoperability · Wire format
Copyright (c) 2026 Blaine Bouvier · CPAL-1.0 · License · Attribution
The receiver grants ranges to concurrent lanes. For each shard the sender describes how to produce its bytes. A recipe can mix fresh data, Zstandard literals, zeros, a copy from an earlier range in the batch, and a reference to bytes from a previous local file. The receiver verifies the reconstructed shard with SHA-256 before marking it complete. The sender receives its final commit after the receiver synchronizes and publishes the file.
An optional receiver-local basis supplies the previous file. Both endpoints find boundaries using the bytes themselves, so a short insertion can leave most later chunks reusable. Each lane exchanges signatures for its current batch. This avoids a preliminary full-file inventory. An unrelated basis adds scanning and signature traffic. Use it when the receiver holds a related version.
On a fresh copy, the protocol can have two batches of work outstanding per lane. A one-shard transfer or an explicitly single-stream transfer can carry data on its authenticated control connection. Whole zero shards can remain holes on filesystems with sparse support. Each peer verifies the same ordered manifest, and rerunning a command revalidates saved partials.
The default automatically negotiates SRP/2 with a current peer and SRP/1 with
an older peer. Use --protocol 2 to require SRP/2 or --protocol 1 to select
the published legacy protocol. Public HTTP(S) servers use the HTTP downloader.
The release archive holds one x86-64 executable with OpenSSL, libcurl and Zstandard built in. It runs on Linux with glibc 2.39 or newer (for example Ubuntu 24.04, Debian 13, Fedora 40 and later).
curl -fsSLO https://github.com/WebWalker3D/Shard-Rush/releases/download/v0.3.0/shardrush-0.3.0-linux-x86_64.tar.gz
curl -fsSLO https://github.com/WebWalker3D/Shard-Rush/releases/download/v0.3.0/SHA256SUMS
sha256sum -c SHA256SUMS
tar xzf shardrush-0.3.0-linux-x86_64.tar.gz
install -Dm755 shardrush-0.3.0-linux-x86_64/shardrush "$HOME/.local/bin/shardrush"
shardrush versionDebian/Ubuntu build dependencies:
sudo apt-get install build-essential pkg-config libssl-dev libcurl4-openssl-dev libzstd-dev python3
git clone https://github.com/WebWalker3D/Shard-Rush.git
cd Shard-Rush
make -j"$(nproc)"
make testRequirements: a C++17 compiler, OpenSSL 3, libcurl 7.85 or newer, Zstandard,
POSIX/Linux interfaces, and Python 3.10+ for tests. Build uses only installed
libraries; no dependency downloads occur during make.
Run directly as ./build/shardrush, or install for your user:
install -Dm755 build/shardrush "$HOME/.local/bin/shardrush"
shardrush versionThe binary links to your system libraries. Build locally when your Linux distribution cannot run a binary compiled on a newer distribution. No root privileges are needed to run transfers.
mkdir -p incoming
shardrush keygen --cert server-cert.pem --key server-key.pem --token-file shared-token.txt
shardrush serve --dir ./incoming --host 0.0.0.0 --port 8737 \
--cert server-cert.pem --key server-key.pem --token-file shared-token.txtkeygen prints a certificate SHA-256 fingerprint. Copy that fingerprint
and the shared token securely to the sending machine. Keep the private key
on the server. The shared token authorizes reading and writing files in
the served directory, so use a dedicated directory and share it only with
the intended peers. Allow TCP port 8737 between the machines if required.
shardrush send ./model.gguf RECEIVER_IP \
--port 8737 --token-file ./shared-token.txt --pin SERVER_FINGERPRINT \
--streams autoUse --name other-name.gguf to choose a different destination filename.
The final file appears in incoming only after successful verification and
publication. Existing destination files are never silently overwritten.
With a server already serving a directory containing the file:
shardrush receive SERVER_IP model.gguf --output ./model.gguf \
--port 8737 --token-file ./shared-token.txt --pin SERVER_FINGERPRINTBoth machines use the same executable. serve accepts pushes and supplies
pulls. Plain filenames are served; remote directory traversal is refused.
Add --once to serve exactly one authenticated OPEN attempt and exit; a failed
attempt returns a nonzero status.
For a push, select the previous version on the receiving server:
shardrush serve --dir ./incoming --host 0.0.0.0 \
--cert server-cert.pem --key server-key.pem --token-file shared-token.txt \
--basis ./incoming/model-v1.ggufRun the sender with a new output name:
shardrush send ./model-v2.gguf RECEIVER_IP --protocol 2 --streams 4 \
--token-file shared-token.txt --pin SERVER_FINGERPRINT --jsonFor a pull, supply the basis directly to the receiving command:
shardrush receive SERVER_IP model-v2.gguf --output ./model-v2.gguf \
--basis ./model-v1.gguf --protocol 2 --streams 4 \
--token-file shared-token.txt --pin SERVER_FINGERPRINT --jsonThe basis is read-only and must stay stable. Use a separate output name.
Selecting a server basis authorizes its content fingerprints to be shared with
authenticated uploaders. The sender cannot select a path on the remote host.
The basis_bytes, repeat_bytes, zero_bytes, literal_bytes and
resumed_bytes fields show where the output came from.
Rerun the same send/receive command. Keep the hidden partial and journal files until completion. Completed ranges are rehashed locally and checked against the source before they can be skipped. The first resume stage may therefore spend time reading local disk even when it sends few bytes.
The source must stay unchanged throughout a transfer. Use a snapshot or an immutable copy for data that another process is actively modifying.
shardrush download 'https://example.org/large-file.bin' \
--output large-file.bin --streams autoWhen the publisher provides a conventional SHA-256, supply it:
shardrush download 'https://example.org/large-file.bin' \
--output large-file.bin --sha256 EXPECTED_SHA256 --streams 4The downloader probes range support, validates exact byte offsets and
representation identity, and falls back to one stream when safe sharding
is unavailable. It does not trust an Accept-Ranges header alone. HTTPS
certificate verification stays enabled. Saved ranges are rehashed before
reuse. See HTTP behavior.
Over a real transatlantic internet link (US to Germany), Shard Rush 0.3.0
pulled a new 256 MiB file 4.8× faster than rsync and 5.1× faster than scp:
4.27 s against 20.64 s and 21.75 s, using 8 encrypted parallel streams. The
default --streams auto took 6.33 s (3.3× faster than rsync) and pushed in
the other direction 1.57× faster than rsync. Shard Rush paid for a fresh TLS
handshake in each run; scp and rsync reused an authenticated SSH connection.
With the previous file at the receiver, 0.3.0 pushed 1 MiB of scattered edits 1.39× faster than rsync, a 137-byte insertion 1.34× faster, and a sparse image 1.2× faster. rsync stayed 1.17× faster for pulled edits and still sends fewer bytes for edits (1.23 MB against 1.79 MB). Medians of three runs; every TCP transfer passed SHA-256 verification. The real-network benchmark report has every result, the 0.2.0 comparison, and the experimental QUIC transport, whose uploads failed on this path.
In single-host lab measurements, a 96 MiB revision with scattered edits took 0.310 s versus 8.089 s for SRP/1 on a shared 12 MiB/s link, a 26.14× speedup with the previous file already on the receiver. A fresh 1 GiB sparse image took 0.063 s versus 0.834 s on loopback, a 13.27× speedup without a basis. Dense pseudorandom first copies measured 1.63× on direct loopback and 1.00× on the capped link. These are medians of three runs per version including verification and durable commit on one Linux host.
The SRP/2 benchmark report compares the published 0.1.0 executable against 0.2.0 with identical TLS, concurrency, compression and durability settings. It includes dense first copies, sparse images, local basis files with scattered edits, and files shifted by a header insertion. The SRP/1 and public HTTP measurements remain available.
The defaults are starting values. Measure complete transfer time on the actual machines and storage. More streams can increase CPU use or slow a busy disk without increasing throughput.
shardrush send ./model.gguf RECEIVER_IP \
--token-file ./shared-token.txt --pin SERVER_FINGERPRINT \
--streams 4 --chunk-size 4MiB --window 8 --compression off --json| Option | Purpose |
|---|---|
--streams auto |
Adjust active parallelism from observed useful progress |
--streams N |
Fixed lanes/requests for reproducible tuning |
--max-streams N |
Automatic concurrency ceiling; default 8 |
--chunk-size 4MiB |
Independently verified/resumable piece size |
--window 8 |
Peer shards per batch; increases application work in flight |
--compression auto |
Sample before selecting Zstandard for a peer shard |
--compression off |
Useful for already-compressed media, archives and many models |
--congestion NAME |
Select an available Linux TCP algorithm per peer socket |
--transport tcp|auto|quic |
Peer transport, default tcp. Experimental: QUIC needs OpenSSL 3.5 on both ends, is slower than TCP on long paths, and long-path uploads currently fail (details) |
--timeout SECONDS |
Bound operation stalls |
--json |
Machine-readable final metrics on stdout |
--quiet |
Suppress progress output |
The application leaves kernel TCP buffer autotuning in place. It does not change system-wide sysctls. A congestion algorithm must already be available in the kernel to be selected.
--plain explicitly disables TLS for trusted-network tests. It retains
token challenge authentication and corruption detection, but does not
encrypt content or protect the payload from an active network attacker.
Always distinguish plain and TLS measurements.
make test
python3 benchmarks/run.py --helpTests use real local client/server processes and independent conventional file hashes. They cover boundary sizes, parallel push/pull, TLS, rejected credentials, interrupted transfers, resume and malformed HTTP responses. See SRP/2 validation and the 0.1.0 validation record. The benchmark harness generates fixtures outside the timed interval and records multiple repetitions with the same verification/durability policy.
Read SRP/2 benchmarks, the SRP/2 specification, the SRP/1 specification and research decisions. Loopback results are local software measurements and do not prove which tool wins on your WAN.
This release transfers one regular file per command. It does not implement
directory synchronization, metadata/ACL preservation, automatic NAT
traversal, a GUI, or a new UDP congestion-control algorithm. It has not had
an independent security audit. File hashes describe bytes; the peer
manifest_sha256 is an ordered protocol manifest hash, not the conventional
SHA-256 of the whole file. HTTP sha256 is the conventional file hash.
Original project code is licensed under the Common Public Attribution License Version 1.0 (CPAL-1.0). See LICENSE and the completed source/attribution notices in NOTICE. Dependencies keep their own licenses; see THIRD_PARTY.md.