Mirror backups · free and open source
bupr
Preset-based mirror backups for the macOS terminal.
brew install dfallman/tap/bupr View on GitHub macOS
About
Bupr mirrors folders on your Mac to an external drive or a mounted NAS. Describe each backup once in a small TOML file, and from then on it is bupr dev to mirror all of ~/dev, or bupr --all to run every backup you have defined.
It knows which files your tools can regenerate. A target/ folder is skipped only when a Cargo.toml sits next to it, node_modules/ only beside a package.json, and .build/ only beside a Package.swift, while .git folders, lockfiles, and .env files are kept. That often turns 100 GB of project folders into a backup of a few.
What you get is a plain folder with the same layout as the source, which opens in Finder on any Mac. It is a one-way mirror, not a versioned backup: keep Time Machine or Backblaze for history, and use Bupr for the fast, lean copy of your projects on a drive you carry.
What it does
Presets, not scripts
No long
rsynccommand where one missing backslash silently breaks it.bupr newwalks you through a preset.Project-aware excludes
Skips only what can be regenerated.
bupr auditshows what is left out, and why.Live dashboard
Progress, speed, ETA, and the files being copied. Later runs copy only what changed.
Preview a run
--dry-runshows the plan.--simulatereads every file it would copy and writes nothing, to find errors and time the run.Can’t write anywhere else
Several independent layers, down to a kernel sandbox around the copier, keep every write inside the backup folder.
Refuses the wrong destination
A volume root, your home folder, or an unmounted drive is turned down before anything is copied, as is the internal disk unless you opt in, and large deletions get a prompt.
Keeps secrets off plain drives
Warns before
.envfiles and keys land on a drive that isn’t known to be encrypted. Ask it to, and it makes you confirm first, or stops an unattended run.Runs unattended
Schedule it with
launchd.--allruns every preset, skipping any whose drive isn’t mounted, and exit codes tell a script what happened.
Who it’s for
You have a lot of projects
Your
~/devfolder is full ofnode_modules/andtarget/folders that take up gigabytes and can be rebuilt in minutes. Bupr backs up your code, your.githistory, and your.envfiles, and leaves out only what your tools can rebuild.You don’t trust backups you can’t open
Bupr makes a plain mirror on your external drive or NAS. Open it in Finder, and copy back a single file on any Mac, with no restore step and no special app.
You’ve been burned by rsync
One missing slash or a misplaced
--delete, and a backup script quietly does the wrong thing. Bupr gives you the speed of a mirror, with presets, previews, and guard rails instead of a fragile one-liner.
Install
With Homebrew:
brew install dfallman/tap/bupr Prebuilt binaries for macOS are on the latest release page, and the source is on GitHub.
Try it
bupr initbupr dev --dry-run The first writes a starter config to ~/.config/bupr/config.toml, which bupr edit opens so you can point it at your drive. The second shows what a backup would copy and delete, without touching anything. Or run bupr new, which asks you questions instead.
Bupr is free and open source under the MIT licence. Read the source, report an issue, or contribute on GitHub.