What happens to a file
you back up.

Every step SnugBackup takes, from the passphrase you type to the sealed blocks in your storage. The diagrams below are live: type, click and press play. Nothing you type leaves this page.

The keys

One passphrase opens a ring of keys.

Your passphrase never encrypts a file itself. It opens a small sealed keyring of random keys, and those keys do the work. That's why changing your passphrase takes a second, and why a recovery key can open the same keyring.

Turn a passphrase into a key

Change a single letter and watch every digit of the key change.

This page's pretend repository was created with .

Argon2id
256 MB of memory · 3 passes · 4 lanes
Salt—

The salt is random, stored in plain sight, and different for every repository. It stops anyone from reusing guesses across people.

Key-encryption key

32 bytes. It exists in memory for as long as it takes to open the keyring, then it's wiped.

Making a guess costs 256 MB of memory and three full passes over it. An attacker who copies your storage has to pay that for every passphrase they try. The key shown here comes from a fast stand-in hash so it can update as you type; the real one comes from Argon2id with exactly these settings.

The keyring

Select any key to see what it does and where it lives.

Keyring Sealed
Derived from the identity key

Both seals wrap the same keyring. Changing your passphrase rewrites one small seal; your backups don't move. Every key inside was drawn at random when the repository was created, so nothing about them depends on how good your passphrase is, except getting to them.

Every key, in writing
  • Key-encryption key. Opens the passphrase seal on your keyring. It comes from your passphrase, so only someone who knows the passphrase can make it. Where it lives: Computed in memory when you unlock, then wiped. Written to storage: Never. KEK = Argon2id(passphrase, salt, 256 MB, 3 passes, 4 lanes)
  • Recovery key. Opens a second seal on the same keyring. It is the way back in if you forget your passphrase, and setting a new passphrase with it leaves your backups untouched. Where it lives: Wherever you saved it when you set up the backup: a password manager, or on paper in a drawer. Written to storage: Never. Lose both this and your passphrase and nobody can open the backup, including us. 32 random bytes, written as 13 groups of 4 letters plus a 6-character typo check
  • Identity key. The root of every fingerprint and cut point. It never changes, which is what lets the same data match up across years of backups. Where it lives: Inside the sealed keyring; in memory while SnugBackup is working. Written to storage: Only sealed, inside the repository config. 32 random bytes, drawn once when the repository is created
  • Data key. Encrypts every chunk, folder listing, file list and snapshot. Each sealed item records which data key it used, so a new key can be added later without re-uploading anything. Where it lives: Inside the sealed keyring; in memory while SnugBackup is working. Written to storage: Only sealed, inside the repository config. XChaCha20-Poly1305 key, 32 random bytes
  • Index key. Encrypts the local index on your Mac: the cache that lets SnugBackup tell what changed without asking your storage. Where it lives: Inside the sealed keyring; the index it protects stays on your Mac. Written to storage: Only sealed, inside the repository config. SQLCipher key, 32 random bytes
  • Chunk-ID key. Keys the fingerprint of every chunk. Identical data gets the same ID, so it is stored once; without this key nobody can check whether a known file is in your backup. Where it lives: Derived in memory from the identity key. Written to storage: Never. It can always be derived again. BLAKE3 derive_key("ez-backup chunk-id v1", identity key)
  • Chunking seed. Seeds the rolling fingerprint that decides where files are cut. Because the cut points depend on a secret, chunk sizes don't give away which file they came from. Where it lives: Derived in memory from the identity key. Written to storage: Never. BLAKE3 derive_key("ez-backup cdc-gear v1", identity key)
  • Folder-ID key. Fingerprints the encrypted folder listings, the same way the chunk-ID key fingerprints file data, so an unchanged folder is stored once. Where it lives: Derived in memory from the identity key. Written to storage: Never. BLAKE3 derive_key("ez-backup tree-id v1", identity key)
  • Verifier. Tells a right passphrase from a wrong one straight away, with a clear message instead of a confusing decryption error. It is one-way: it reveals nothing about any key. Where it lives: In the repository config, readable by anyone. Written to storage: Yes, in plain text. That is safe because it can't be turned back into a key. BLAKE3 derive_key("ez-backup key-verifier v1", identity key)
  • Config seal. Seals the repository settings. If someone with access to your storage weakens the passphrase settings or swaps a value, the next unlock notices and refuses. Where it lives: Derived in memory; the seal itself sits in the config. Written to storage: The seal value, yes. The key behind it, never. keyed BLAKE3 over the config, key = derive_key("ez-backup config-mac v1", identity key)
  • History seal. Seals a counter that moves forward with every backup, so nobody can quietly put an older copy of your storage back and hide newer backups from you. Where it lives: Derived in memory; the sealed counter sits in your storage. Written to storage: The sealed counter, yes. The key behind it, never. keyed BLAKE3 over the head counter, key = derive_key("ez-backup head-mac v1", identity key)

Who can see what

The same backup, seen by three different parties.

A backup, step by step

Five files go in. Sealed packs come out.

Watch the first backup of a small folder, then the backup the next day, when only a little has changed. Sizes are drawn on a log scale; a real 1.2 GB video has over a thousand chunks, so it's drawn with fewer.

    1. Look for changes

    This is the first backup, so every file is new and every file gets read. SnugBackup reads from a frozen APFS snapshot of your disk, so a file you save mid-backup can't end up half old and half new.

    First backup: all 8 steps in writing
    1. Look for changes. This is the first backup, so every file is new and every file gets read. SnugBackup reads from a frozen APFS snapshot of your disk, so a file you save mid-backup can't end up half old and half new.
    2. Cut into chunks. Each file is cut where its own content says so: a rolling fingerprint slides over the bytes and marks a cut wherever it hits a pattern. Chunks land between 256 KB and 8 MB, about 1 MB on average. Small files stay whole. The pattern is seeded from your key, so the cut points give nothing away.
    3. Fingerprint every chunk. Each chunk gets an ID: a BLAKE3 hash keyed with your chunk-ID key. The same bytes always get the same ID. Without your key, nobody can compute one, so nobody can check whether a known file is in your backup.
    4. Skip what's already stored. beach copy.heic is the same photo, byte for byte. Its chunks have the same IDs as the ones from beach.heic, so they are stored once and referenced twice. The copy costs no space.
    5. Compress what will shrink. Text and spreadsheets go through zstd and shrink a lot. Photos and video are already compressed, so SnugBackup stores them as they are and saves the CPU time. Compression has to happen before encryption, because sealed bytes look random and don't compress.
    6. Seal each chunk. Each chunk is encrypted with XChaCha20-Poly1305 under your data key, in 64 KB pieces that each carry an authentication tag. The chunk's ID is bound into the seal, so a block that is changed, cut short or swapped for another fails to open instead of restoring wrong data.
    7. Bundle into packs. Thousands of tiny uploads would be slow and costly, so sealed chunks are bundled into pack files of up to 128 MB, with an encrypted table of contents at the end. A file's chunks sit side by side, so restoring it takes a few large reads instead of hundreds of small ones. This folder really fills about ten packs; three are drawn.
    8. Upload, then commit. Packs go up first. Then the encrypted folder listings, a map of what each pack holds, the file list, and last of all the snapshot that names this backup. Until the snapshot lands the backup doesn't exist, so an interrupted backup never shows up half done. The next run picks up where it stopped.
    Next day: all 8 steps in writing
    1. Look for changes. The next day, SnugBackup compares each file's size and modification time with the last backup. budget.csv and both photos haven't changed, so they are skipped without reading a byte. You edited notes.md, added a title card to holiday.mov, and saved a new receipt.pdf.
    2. Cut into chunks. Because cuts follow the content, adding a title card to the start of the video changes only the first chunk. A few bytes later the rolling fingerprint finds the same cut points it found yesterday, and every chunk after that comes out identical.
    3. Fingerprint every chunk. The new first chunk of holiday.mov gets a new ID. The other thirteen get exactly the IDs they had yesterday.
    4. Skip what's already stored. Thirteen of the video's chunks are already in your backup from yesterday, so they are referenced, not uploaded. Of a 1.2 GB file that changed, about 1 MB is new.
    5. Compress what will shrink. The edited notes shrink through zstd. The video's new chunk and the PDF are already compressed and go through as they are.
    6. Seal each chunk. The three new chunks are sealed under your data key, exactly as yesterday. Chunks that were reused aren't touched: they're already sealed in your storage.
    7. Bundle into packs. Three small chunks fit in a single pack.
    8. Upload, then commit. One small pack goes up, then the new folder listings, the file list and the snapshot. Unchanged folders reuse yesterday's listings, so they cost nothing either. The new snapshot still shows every file, complete, as it was this morning.
    Your storage

    What your storage actually holds.

    This is the whole repository, as your cloud bucket or backup drive sees it. Select a row to see what it holds and what your provider can tell from it.

    What the provider sees
    Everything in the repository, in writing
    • config (1.4 KB). The repository's settings and your sealed keyring, twice: once under the passphrase seal and once under the recovery-key seal. Also the Argon2id settings and salt, the verifier, and the config seal that catches tampering. What the provider sees: config 1.4 KB JSON { "repo_version": 6, "kdf": { "memory_kib": 262144, … }, "wrap_kek": "kX9v…", "wrap_rk": "Qm2c…", "mac": "…" }
    • head (0.2 KB). A sealed counter that moves forward with every backup. If an old copy of your storage is ever put back, the counter no longer matches and SnugBackup stops until you confirm it was on purpose, instead of quietly showing you an older history. What the provider sees: head 212 B sealed bytes
    • snapshots/. One small file per backup: when it ran, what it covered, any pin or tag, and a fingerprint of its file list so damage is caught before a restore starts. Encrypted. What the provider sees: a random name per backup, about 1 KB each, and the time it was uploaded
    • 0193a4c2-7d1e-7c40-9b8e-3f6a1c09d2e5.snap (0.9 KB). The first backup's snapshot. Encrypted, with its own ID bound into the seal, so it can't be passed off as a different snapshot. What the provider sees: snapshots/0193a4c2-7d1e-7c40-9b8e-3f6a1c09d2e5.snap 912 B uploaded 2026-12-01 09:14
    • 0193a9f7-12c4-7e01-8a55-b04e7f3c6a18.snap (0.9 KB). The next day's snapshot. It shows every file, complete, even though only three new chunks were uploaded for it. What the provider sees: snapshots/0193a9f7-12c4-7e01-8a55-b04e7f3c6a18.snap 918 B uploaded 2026-12-02 09:14
    • manifests/. The file list for each backup: which folders were backed up and where their listings are. The listings themselves are packed alongside your data. Encrypted. What the provider sees: a random name per backup, small
    • 0193a4c2-7d1e-7c40-9b8e-3f6a1c09d2e5.manifest (0.6 KB). The first backup's file list, pointing to its sealed folder listings. What the provider sees: manifests/0193a4c2-7d1e-7c40-9b8e-3f6a1c09d2e5.manifest 604 B
    • packs/. Your data: sealed chunks bundled into pack files of up to 128 MB, plus the sealed folder listings. This is nearly all of the space you pay for. What the provider sees: random names and sizes, nothing else
    • 6f1e2a90-41b7-7d3c-a2f8-5c0e9b1d4a77.pack (127.9 MB). One full pack: hundreds of sealed chunks back to back, then a sealed table of contents. Nothing inside says which files the chunks came from. What the provider sees: packs/6f1e2a90-….pack 127.9 MB uploaded 2026-12-01 09:12
    • b07c51d3-8e2a-7f19-b6c4-0d93e5a7f128.pack (1.6 MB). The next day's pack, holding the three new chunks. What the provider sees: packs/b07c51d3-….pack 1.6 MB uploaded 2026-12-02 09:14
    • index/. One small map per backup saying what the packs it created contain. A new Mac reads these maps instead of opening every pack, so it can start a restore within moments. Encrypted. What the provider sees: a random name per backup, small
    • locks/. A note that a backup or cleanup is running, so two Macs never tidy up and back up into the same storage at the same moment. A lock left behind by a crash expires on its own within 15 minutes. What the provider sees: locks/backup.lock plain JSON: the Mac's name, a process ID and an expiry time
    • meta-mirror/. A second copy of the config, snapshots and file lists. If one copy is ever damaged, SnugBackup reads the other. Your data packs are protected separately, by optional repair data. What the provider sees: the same names as above, a second time

    That's the whole trip.

    Encrypted on your Mac, stored where you choose, and readable only with your keys. SnugBackup does all of this quietly, on whatever schedule you pick.

    Download for Mac