MacBackup macOS application icon
macOS 14+ · Native SwiftUI · 100% Local · MIT

Incremental disaster-recovery backup for developer Macs

If your laptop dies today, what actually hurts to lose? SSH keys, .env secrets, months of Claude Code & Codex sessions, and unpushed Git work. MacBackup archives just what matters — compressed with zstd, SHA-256 verified byte by byte, and restorable on any Mac with built-in tar.

Free & open source · 1.4 MB native SwiftUI app · Zero network access · English & Russian

~150 GB vs 800 GB
Skips rebuildable junk like node_modules & caches
SHA-256 verified
Every archive decompressed & re-hashed after write
Built-in tar
Portable zstd lives on the drive — restore anywhere
AI-agent ready
Ships AGENTS.md + index.json right on the disk
Native SwiftUI window with menu-bar status, compression ratios, and per-archive verification.
MacBackup main macOS window in dark mode listing backed-up categories, sizes, compression ratios, and SHA-256 verification status
MacBackup window during an active incremental backup showing progress bar, MB/s speed, and remaining time
MacBackup run history and scrollable verification log
MacBackup main window in macOS light mode
Smart Developer Scope

Everything irreplaceable — none of the 600 GB noise

Every folder in your home directory and ~/Documents gets its own independent .tar.zst archive. AI coding tools are detected and split cleanly so incremental updates stay fast.

Diagram of what MacBackup includes: Keys & access, AI tools like Codex and Claude Code, Projects with full git history, System & settings — and what it skips
AI Sessions

Claude Code, Codex & Cursor

Splits Codex sessions by month and Claude Code chats per project, keeping skills, memory, settings, and transcripts intact without re-packing gigabytes each week.

Integrity

Verified, not hoped

After writing, every archive is decompressed, every file is SHA-256 checked against its manifest, and up to 25 files per part are compared directly against originals on your Mac.

Databases

Safe live SQLite snapshots

Databases belonging to bots, apps, and Codex history are copied via SQLite's online backup API — never caught half-written mid-transaction.

Secrets

All keys collected in one place

SSH keys, .env files, .pem certs, tokens, and optional Keychain passwords are gathered into keys/secret-files on your encrypted drive.

Resilient

Unplug mid-run without corruption

Pull the SSD cable at any moment: MacBackup pauses calmly, cleans up the half-written archive next time you plug in, and resumes from the remaining parts.

Agent-friendly

Self-documenting backup disk

The drive includes README.md, AGENTS.md, and index.json. On a new Mac, point Claude Code or Codex at the drive and ask it to restore your workspace.

Comparison

MacBackup vs Time Machine

They solve different problems and work best together. Time Machine is great for full-disk hourly snapshots; MacBackup is the compact, verified developer rescue kit you can restore on any borrowed Mac in minutes.

Dimension MacBackup Time Machine
What it copies Work that exists only on this Mac (keys, AI history, Git repos, dotfiles) Whole disk, macOS system data, apps, caches
Size on drive ~15–20% of disk (e.g. 150 GB of 813 GB) 500 GB – 1 TB+ plus snapshot history
Shares an external SSD Yes — one plain folder next to your other files Wants a dedicated volume and space
Restore any single project One tar command on any Mac (portable zstd included on drive) Migration Assistant / Time Machine browser
Proof the copy is intact SHA-256 re-hashed every run Trust
Understands developer work Skips node_modules/caches, snapshots live SQLite DBs, reports unpushed Git commits Copies rebuildable junk; live DBs may be caught mid-write
Readable without the app Plain .tar.zst + manifests + README.md / AGENTS.md Only through Time Machine
How It Works

Fast zstd -9 compression, calm weekly scheduling, zero-dependency restore

First run takes about an hour; weekly incremental runs finish in minutes because unchanged folders are skipped via file-tree fingerprinting.

How a MacBackup run works: fingerprint changes, snapshot SQLite, pack with zstd -9, verify every SHA-256 hash
Quick Start

Set up in 3 minutes

Requires macOS 14+ (Apple Silicon or Intel), Python 3 (built into macOS/Xcode CLT), and Homebrew zstd.

  1. 1Install compression tool once: brew install zstd
  2. 2Download MacBackup.zip from Latest Release and move MacBackup.app to /Applications.
  3. 3Grant Full Disk Access in System Settings → Privacy & Security, pick your encrypted backup drive in Settings (⌘,), and click Back Up Now.
  4. 4Optional: run ./scripts/install-scheduler.sh to back up automatically whenever the drive is plugged in and due.
Disaster Recovery

Restore on a brand-new Mac

Nothing to install on the replacement Mac. MacBackup stores a portable, zero-dependency universal zstd binary right inside tools/ on your backup disk.

bash — restore from backup drive
cd /Volumes/<YourDisk>/MacBackup
export PATH="$PWD/tools:$PATH"

# 1. Restore SSH keys & secrets first
for a in archives/keys/*.tar.zst; do tar -xf "$a" -C ~; done
chmod 700 ~/.ssh && chmod 600 ~/.ssh/*

# 2. Restore a single project — or everything
find archives -name '*.tar.zst' -print0 \
  | xargs -0 -n1 tar -C ~ -xf