
Backdit: Sharing Spare NAS Space for Encrypted Offsite Backups
If you run a home server, a TrueNAS or Unraid box, or a multi-terabyte archive, you have probably run into the same problem I did when trying to set up a proper 3-2-1 backup strategy. Local copies are straightforward. A main ZFS pool plus a local backup disk or a second machine at home is easy enough to maintain. The offsite copy is where things get expensive once you are backing up several terabytes.
Usually you end up picking between a few options:
• Cloud object storage (Backblaze B2, Wasabi, BorgBase, S3): Reliable and easy to set up, but at roughly $7 to $8 per TB per month, things can get expensive quite fast.
• Putting a second NAS at a relative’s house: In theory this can work (and I’ve been doing it), until a drive fails or an ISP changes something and you have to troubleshoot it remotely.
• Crypto-based storage networks (Filecoin, Storj, Sia): Interesting engineering, but I just wanted a self-hosted offsite backup tool without trying to learn economics and trading in the process 🙂
At the same time, a lot of people in the self-hosted, homelab, and data-hoarder communities (myself included) have terabytes of idle disk space sitting on machines that are already powered on 24/7.
That is why I’m trying to build Backdit: an open-source (AGPL-3.0), tokenless peer-to-peer offsite backup daemon written in Rust where you share spare NAS drive space to get encrypted, erasure-coded offsite backups with zero monthly bills (“free” as how much free space you have on your disks). There is no blockchain, no cryptocurrency, and no central storage server.
Be aware that Backdit v0.1.2 is early alpha, unaudited software. The idea is heavily inspired by Tahoe-LAFS, and while I drove the architecture, threat model, bilateral incentive design, and multi-node testnets, the Rust implementation heavily utilizes LLMs. Proceed at your own risk, never use it as the only copy of data you care about, and pre-encrypt everything. Because P2P storage projects have a long history of failing in the real world, I want to walk through how Backdit actually works, what it is not, and the practical reasons it can still fall short.
What is Backdit
A storage network is not automatically a full backup engine. Early in development I tried adding built-in versioning, soft delete, cross-file deduplication, and live folder watching, and eventually stripped all of them out. Trying to re-implement Restic inside a P2P protocol just adds bugs and complexity where mature tools already do a better job.
• What Backdit is: A dedicated, encrypted, self-healing offsite storage layer. It ships as a single portable binary for Linux, Windows, and macOS with an embedded Web UI, and as a prebuilt Docker image. It packs small files efficiently, streams multi-TB backups straight from disk with zero temporary staging copy, supports Portable Mode and Windows system tray launch, and connects to two live dual-stack public bootnodes out of the box in v0.1.2.
• Recommended homelab workflow: Keep your existing ZFS/Btrfs snapshots, Restic, Borg, Kopia, Veeam, etc schedule locally, and push finished archives or read-only snapshots offsite via `backdit put`, cron, or the Web UI. Do not point Backdit at a live Restic, Borg, or Kopia repository directory while it is actively locking, compacting, or pruning. NOTE: Until we have enough peers, expect very limited capacity to upload backups, so do like me and just upload test data for now.
How Backdit Works Under the Hood
1. Dual-Layer Encryption, Bit-Rot Audits, and Zero-WAN Repair

Backdit handles both host protection and silent disk decay in three steps:
1. Client-side encryption and erasure coding: Small files are packed into 64 MiB containers, and larger files are split into 64 MiB stripes, compressed with Zstd, encrypted on your machine with XChaCha20-Poly1305, and Reed-Solomon 8+6 erasure-coded into 14 shards across 14 distinct host accounts (preferring diverse networks, capped at 2 shards per public IPv4 /24 or IPv6 /48). Any 8 of 14 shards reconstruct the stripe, so backups survive up to 6 simultaneous host losses.
2. Receiver-enforced sealing in locked RAM: When a host receives a shard, it verifies the sender’s Proof-of-Possession, reads the incoming bytes into fail-closed OS-locked RAM (never implicitly falling back to pageable swap), seals the bytes via RFC 9180 HPKE to the owner’s public key, and writes an opaque shard container to disk. A modified uploader cannot force plaintext onto a host’s drive, and your client-side encryption ensures a malicious host can never read your backup contents (with the caveat above this is still ALPHA, so strongly recommended to still encrypt your files first).
3. Ongoing Merkle audits and Zero-WAN local repair: Background Sentinel audits periodically challenge hosts for random 64 KiB Merkle block proofs without downloading full shards. If a host silently drops a shard or suffers bit-rot, Backdit penalizes it locally and queues self-healing. If your original backed-up file is still untouched at its local path (stored strictly in your local database, never shared with peers), Backdit verifies the stripe hashes locally and uploads replacement shards with zero WAN download, falling back to 8-of-14 P2P reconstruction only if the local file moved or changed.
2. Pairwise Bilateral Accounting (How It Stops Freeloaders Without Tokens)

The most common question about a ledgerless P2P network is simple: if there is no central server and no blockchain, what stops someone from spinning up two fake nodes, storing dummy data for each other to mint infinite points, and draining other hosts?
In Backdit, there is no global point system. Credit is strictly per-partner and non-transferable. Storage time (GiB-hours) you earn hosting shards for Bob can only be spent storing your shards on Bob, never on Charlie. Because credit never transfers to third parties, there is no double-spending problem and nothing to forge.
• Bounded starter pools for Day 1: A brand-new node starts with zero earned credit. To solve cold start without letting strangers dump 1 TB and vanish, hosts with open starter pools reserve 5% of their usable space for small temporary trial slices, capped at 512 MiB per account and shared across an entire public /24 or /48 subnet. Larger backups require mutual hosting or earned credit with each partner.
• Prepaid credit caps and outage protection: Prepaid credit stops accruing past a 30-day rolling horizon so a patient freeloader cannot host 10 GB for a year and suddenly burst terabytes overnight. At the same time, established reciprocating partners are never evicted for outages under 60 days, and net creditors, trusted accounts, and Recovery Capsules are never evicted. Zero-reciprocity starter slices can be reclaimed after 30 days once a host’s starter pool fills past 85%.
• Asymmetric circles (trusted_accounts): Friends, family, or a second NAS rarely back up identical amounts of data. An opt-in `trusted_accounts` config lets you grant explicit GB quotas to specific Account IDs without relaxing limits against open-mesh strangers.
3. Clean-Machine 24-Word Cold Recovery

A 24-word BIP-39 phrase restores cryptographic keys, not the IP addresses of the peers holding your data. If your server or NAS dies completely, you install Backdit on a fresh machine, enter your 24 words, and it derives a blind DHT locator key to fetch your signed, encrypted Recovery Capsules (which are also Reed-Solomon 8+6 erasure-coded). Before hydrating your catalog, the UI displays the discovered sequence number and confirming host count so you can check for a stale rollback, then restores your files straight from surviving hosts even if their home IPs changed while you were offline.
Limitations and Reasons Backdit Might Fail
Running a P2P backup mesh over real home internet connections comes with real tradeoffs that software alone cannot fix:
1. Storage overhead (2.2x to 2.5x) and real marginal cost: Reed-Solomon 8+6 expands 1 TB of backups to 1.75 TB of shards. Factoring in Backdit’s 20% local reserve for headroom and repair turnover puts the practical quota rule around 2.2 to 2.5 TB offered per 1 TB backed up. Also, zero monthly bills does not mean zero cost: electricity, drive wear, and bandwidth still cost money. Backdit only makes financial sense on a marginal-cost basis when your NAS is already running 24/7 with spare space. Offering 4 TB of empty disk does not give you instant upload space on Day 1 either, since you earn capacity as peers actually store shards on your drive.
2. Residential NAT, CGNAT, and port forwarding: Like BitTorrent, Backdit’s Circuit Relay v2 servers only handle tiny hole-punch signaling (256 KiB / 120s max), never bulk backup data. If you sit behind strict CGNAT or a VPN without forwarding port 9010 (TCP and UDP), you can dial out to upload, but remote peers will struggle to store shards on you, which starves your reciprocity credit. Forwarding TCP/UDP 9010 (and enabling IPv6 where available) helps a lot.
3. Multi-TB repair bandwidth without local sources: When your local source file is still on disk, shard repairs cost 0 bytes of download. If the local file is gone, reconstructing 1 missing shard over P2P still requires downloading 8 surviving shards (8x read amplification). Backdit has upload/download caps, a 2 MiB/s default repair budget, quiet-hours schedules, and metered-network mode, but we still have no real-world WAN repair benchmarks across residential links.
4. Open-mesh Sybil majorities and alpha limits: Single-subnet /24 and /48 caps, 16-bit PoW handshakes, 256-object dust caps, and per-peer RPC rate limiters are in place to help with basic protection. However, no open permissionless network can stop a well-funded attacker controlling more than 50% of reachable subnets from paying real disk cost to pass audits for weeks and then deleting 7 or more shards at once on newly uploaded stripes. Veteran nodes resist sudden floods by sticking to their 48 proven positive-balance partners, and `friends_only` mode removes open-mesh Sybil risk completely. Also keep in mind: lose your 24 words and your backups are gone.
Try It Out
The only way to make this project succeed is with your help! If you are a brave soul willing to help test an unproven idea out, then spin up a node, find bugs, break stuff, report it! Enhancement Requests and Pull Requests are also very welcome!
• Project Site, Quickstart & Threat Model: https://backdit.org
• Source Code, Releases & Docker Compose (AGPL-3.0): https://github.com/cfelicio/backdit