Skip to content

Reciprocal Storage & Scaling

Backdit has no tokens, no blockchain, and no global reputation ledger. Storage is accounted strictly per partner between pairs of accounts in non-transferable GiB-hours. Understanding this rule avoids the most common newcomer surprise.

How Reciprocal Storage Works and Scales in BackditGiB-hour credit is tracked strictly per partner: credit earned hosting for Peer A can only be spent storing on Peer A, never in a global pool. Offering empty disk does not mint instant storage. Start on Day 1 using temporary trial slices (reclaimable after 30 days without reciprocity when a host's trial pool exceeds 85% full), and scale via Width (when you also store on those peers), bilateral Depth, or Trusted Accounts.2. How Reciprocal Capacity Works & Scales (Strictly Per-Partner GiB-Hours)No tokens · No global pool · Per-partner ledgersRULE #1: STRICTLY PER-PARTNER CREDIT · EMPTY DISK IS NOT INSTANT SPACECredit earned hosting for Peer A spends only on Peer A (never a global pool). Offer 2.2-2.5x your target backup sizeMath: 1.75x RS(8+6) / 80% usable quota = ~2.19x, plus repair & churn headroom.DAY 1 · TEMPORARY TRIALTemporary Bootstrap SlicesTemporary trial slices from peersadvertising ;pool=open (up to512 MiB/peer within 5% pool).Reclaimable after 30d withoutreciprocity if pool > 85% full.Temporary cold-start runwayHOW BILATERAL CAPACITY GROWS (THREE PATHS)1. Peer WidthPossible across manysmaller peers only whenyou also store shards onthose same peers acrossuploads (not guaranteed).2. Bilateral DepthNatural outcome whenhigh-usage homelabbersboth host and store witheach other over a 30dspend & bank horizon.3. Trusted AccountsExplicit per-AccountIdquotas (off by default)for friends, family, oryour own 2nd NAS.economy.trusted_accountsCODE-VERIFIED OUTAGE & EVICTION SAFETY (src/gc/reclaim.rs)No deletion for outages under 60 days (applies to space already backed by hosting; strangers are capped at 512 MiB in the 5% pool).Creditors, trusted accounts, and Recovery Capsules are never evicted. Unreciprocated trial debt reclaims after 30dunder pool pressure (>85% -> 70%); stale non-creditors >= 60d only evict under disk pressure (>90% -> 80%).

Rule #1: Strictly Per-Partner Credit & Empty Disk Is Not Instant Space

Section titled “Rule #1: Strictly Per-Partner Credit & Empty Disk Is Not Instant Space”

Setting max_capacity_gb = 2000 tells peers you are willing to host up to 2 TB of shards, not that you immediately hold 2 TB of upload credit.

Moreover, GiB-hour credit is tracked strictly per partner (BilateralAccountLedger keyed by remote_account): credit earned hosting for Peer A can only be spent storing on Peer A, never in a global pool.

delta = (bytes_hosted_for_peer - bytes_stored_by_peer) * dt
  • Single-step accrual dt is capped at MAX_ACCRUAL_STEP_SECS = 6 hours (21,600s) and clock rollbacks safely rebase dt = 0 without freezing future accrual.
  • SPEND_HORIZON_SECS = 30 days and BANK_HORIZON_SECS = 30 days (MIN_BANK_BASIS = 1 GiB) bound untrusted burst debt while honoring sustained hosting over a 30-day rolling window without clawbacks.
  • Quota Sizing Rule (2.2 - 2.5x): RS 8+6 expands 1 TB of source backups to 1.75 TB of remote shards (1.75x). Divided by 80% usable quota (100% minus Backdit’s 20% reserve_basis_points = 2000), that baseline is ~2.19x (1.75 / 0.80 = 2.1875). Plan to offer roughly 2.2 - 2.5 TB of disk per 1 TB you want backed up to leave headroom for repair turnover, peer churn, and the 5% bootstrap pool (bootstrap_pool_basis_points = 500).

How You Start on Day 1 (Temporary Trial Slices)

Section titled “How You Start on Day 1 (Temporary Trial Slices)”

A brand-new node has hosted 0 bytes for anyone yet. To let you run real encrypted backups immediately while your node comes online and attracts peer shards:

  • Hosts advertise ;pool=open or ;pool=closed in Identify metadata.
  • Hosts with open pools allocate 5% of their post-reserve usable quota (bootstrap_pool_basis_points = 500) for temporary unbacked trial slices, capped at 512 MiB per remote account (max_bootstrap_debt_bytes).
  • Across 14+ open-pool peers, you can test real RS 8+6 uploads immediately on Day 1.
  • Trial slices are temporary: if you make no reciprocal progress (bytes_stored_by_peer == 0) for 30 days and the host’s trial pool exceeds 85% full, the host’s garbage collector can reclaim those trial slices down to 70%.
  • The GET /api/v1/status endpoint and Backup page surface estimated_immediate_upload_bytes and estimated_immediate_upload_hosts so you can inspect your current headroom before starting a job.
  1. Peer Width (Many Smaller Peers): MAX_STICKY_PARTNERS = 48 controls only how many established partners your node proactively protects in connection headroom and re-dials on idle. It is not a cap on how many peers can store shards on your disk. However, because credit is strictly per partner, scaling across many smaller peers is possible only when you also store shards on those same peers (for example across multiple uploads), not guaranteed from a single upload: src/controller/upload/ reuses its verified_pool across stripes of an individual upload (with MAX_DISCOVERY_CANDIDATES = 48 host probes per selection; ShardDistributor::MAX_UNIQUE_PEERS = 100 in src/controller/distribution/mod.rs is not used in the upload pipeline).
  2. Bilateral Depth with High-Usage Homelabbers: There is no central demand-matching service. Pairing with other high-usage homelabbers happens as a natural outcome of bilateral storage usage: peers who store substantial backups on your node build credit with you while your uploads build credit with them over the 30-day spend and bank horizons.
  3. Trusted Accounts ([[economy.trusted_accounts]]): Off by default and strictly separate from [network].friends peering allowlists. Configure explicit per-account quotas keyed by canonical 64-hex AccountId when you want asymmetric capacity for friends, family, or a second NAS of your own without relaxing stranger caps:
    [[economy.trusted_accounts]]
    account_id = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
    label = "Second NAS"
    max_hosted_gb = 500
    gc_exempt = true

Outage, Eviction & Clean-Machine Rebuild Safety

Section titled “Outage, Eviction & Clean-Machine Rebuild Safety”

Verified directly against src/gc/reclaim.rs and src/gc/mod.rs:

  • No deletion for outages under 60 days (and why freeloaders cannot exploit it): Committed placements are never deleted based on transient peer absence or outages shorter than 60 days (STALE_PARTNER_INACTIVE_DAYS = 60). This does not let a newcomer dump 1 TB and vanish for 60 days: at upload admission (StorageHeadroomSnapshot::admit_shard_store_with_economy), unbacked strangers are strictly capped at 512 MiB per host inside the 5% aggregate bootstrap pool (1 TB uploads require active mutual hosting or prior earned credit with each partner). Reboots and 24-word clean-machine rebuilds do not purge your backups.
  • Creditors, trusted accounts, and Recovery Capsules are never evicted: reclaim_stale_partners_on_disk_pressure and reclaim_bootstrap_debt_at strictly protect net creditors (balance_byte_seconds < 0), gc_exempt entries in [[economy.trusted_accounts]], and Recovery Capsules.
  • Unreciprocated trial debt is reclaimable after 30 days under pool pressure: GarbageCollector waits 15m after boot and runs every 24h. When aggregate unbacked bootstrap debt exceeds 85% (bootstrap_reclaim_threshold_bps = 8500), reclaim_bootstrap_debt_at reclaims the oldest placements from zero-reciprocity accounts (bytes_stored_by_peer == 0) with >= 30 days of accumulated debt down to 70% (bootstrap_reclaim_target_bps = 7000). (Note: src/config/storage.rs exposes bootstrap_reclaim_idle_days = 14, while src/gc/reclaim.rs enforces the 30-day debt check.)
  • Stale non-creditor pressure valve (>= 60 days): Only when committed hosted bytes exceed 90% (STALE_PARTNER_PRESSURE_THRESHOLD_PCT) of usable quota (reclaiming down to 80%) or physical free disk drops below an emergency floor above 100 MiB (DISK_FLOOR) does GC evict non-creditor, non-gc_exempt partners continuously inactive for >= 60 days.
  • Ledger preservation across rebuilds: Two-tier Recovery Capsules preserve bilateral ledgers across clean-machine restores (bytes_hosted_for_peer resets accurately from local TABLE_HOST_PLACEMENTS while keeping bytes_stored_by_peer and historical balance_byte_seconds).