BorgBackup vs Restic
A side-by-side comparison of two self-hosted backup & recovery options — licensing, setup difficulty, resource needs, and what each one replaces.
| Feature | BorgBackup | Restic |
|---|---|---|
| Deploy effort | Read-the-docs project | Under-an-hour setup |
| Health score | 94 · Excellent | 99 · Excellent |
| Category | Backup & Recovery | Backup & Recovery |
| License | BSD-3-Clause | BSD-2-Clause |
| Language | Python | Go |
| Setup difficulty | Medium | Medium |
| Min. RAM | 256 MB | 256 MB |
| Deployment | binary, bare-metal | binary, docker |
| GitHub stars | ★ 13,756 | ★ 36,194 |
| First released | 2015 | 2015 |
| Replaces | Carbonite, Backblaze | Backblaze, Carbonite |
What are BorgBackup and Restic?
BorgBackup
BorgBackup is a deduplicating backup program with compression and authenticated encryption for efficient, secure archives. It targets technical users backing up to local or remote storage. It is deployed as a binary or package.
- Deduplication and compression
- Authenticated encryption
- Append-only repos for ransomware safety
- Efficient remote backups over SSH
Restic
Restic is a fast and secure backup program that creates encrypted, deduplicated snapshots to many storage backends. It targets users and admins who want reliable command-line backups. It is deployed as a single binary.
- Encrypted deduplicated snapshots
- Many storage backends
- Fast incremental backups
- Single self-contained binary
BorgBackup vs Restic: key differences
BorgBackup is written in Python, while Restic is built with Go. Licensing differs — BSD-3-Clause for BorgBackup versus BSD-2-Clause for Restic. Restic has the considerably larger community, at 36,194 GitHub stars versus 13,756. Restic lists first-class Docker deployment; BorgBackup does not.
Last reviewed Aug 24, 2026 · 643 words
These are the two serious answers to command-line backup done right, and they agree on everything important: client-side encryption, content-defined deduplication (so daily backups of a 500 GB dataset cost megabytes, not gigabytes), incremental-forever snapshots, and a decade of production trust. The differences are architectural, and the honest tiebreaker is almost boring: where are you backing up to?
Backends: restic's breadth vs Borg's depth
restic speaks to local disks, SFTP, S3 and everything S3-compatible, Backblaze B2, Azure, Google Cloud Storage, its own REST server — and, through rclone, effectively any storage that exists. If your off-site copy lives in object storage (the cheapest honest off-site there is, at B2's ~$6/TB-month), restic is the native choice. Borg's repository must live on a filesystem — local disk, or a remote reached over SSH, ideally with borg installed server-side for speed. That constraint bought depth: Borg repositories support append-only mode, a genuinely stronger ransomware posture (a compromised client can add backups but not delete history), and borg mount exposes any archive as a FUSE filesystem for browsing a backup like a folder. The hosted ecosystem reflects the split — BorgBase and rsync.net cater to Borg's SSH model, while restic pairs with any object-storage bill.
Operational texture
Both are single-purpose CLIs you drive from cron or systemd timers; neither ships a scheduler, and the wrappers fix that — borgmatic for Borg, resticprofile or plain scripts for restic — turning "backup, prune, check, notify" into one declarative config. restic is a true single static binary (Go), trivially identical everywhere; Borg is Python, distributed as packages or a bundled binary. Compression: Borg has offered zstd for years; restic added it in 0.14, closing its old gap — repository sizes now land close enough that neither wins on disk. Memory is the one resource note: restic's pruning historically wanted more RAM on very large repos, much improved in recent versions but still worth knowing on a Pi-class box. Speed differences are workload-dependent and small; both saturate a home uplink long before they saturate a CPU.
Restores are where the models feel different: Borg's mount makes "grab that one file from last Tuesday" a file-browser task; restic answers with restic mount too, plus fast restore --include paths — call it a wash today, with Borg's mount the more battle-worn.
The rule that outranks the tool choice
Either tool, misused identically, fails identically: an untested backup is a hypothesis, and prune settings that keep too little are discovered during the restore. Schedule check runs (both verify repository integrity), do a quarterly test restore, and keep the 3-2-1 structure — the tool guards against disk death and ransomware only if a copy lives off-site with credentials the client can't destroy (append-only for Borg; object-lock/immutability or separated keys for restic). What you back up matters more than how: the docker-compose patterns post covers snapshotting live databases before either tool ships them.
Decision table
| You | Pick |
|---|---|
| Off-site = B2/S3/Wasabi/anything-rclone | restic |
| Off-site = SSH box, NAS, BorgBase | BorgBackup |
| Append-only ransomware posture, first-class | BorgBackup |
| One static binary across odd platforms | restic |
| Browse archives as a filesystem, daily habit | BorgBackup |
| Simplest possible cloud setup this weekend | restic |
What I'd do
My split, and a common one: restic to Backblaze B2 for the off-site copy (cheap, immutable buckets available), Borg to the NAS over SSH in append-only mode for the fast local restore tier. If you're picking just one: restic, purely because object storage is where most people's off-site should live in 2026. But nobody ever regretted either — regret in backups comes exclusively from the test restore you didn't do.
Why pick each one
Choose BorgBackup if…
- Excellent space efficiency
- Strong security
- Battle-tested
Watch out for
- Command-line oriented
- Repo not directly mountable everywhere
Choose Restic if…
- Strong encryption
- Efficient deduplication
- Wide backend support
Watch out for
- Command-line only
- No built-in scheduler
Frequently asked questions
Is BorgBackup or Restic better?
Neither is universally better. Restic has the larger community; both share a medium setup difficulty, so the decision comes down to features and licensing.
Are BorgBackup and Restic free and open-source?
Yes. BorgBackup is licensed under BSD-3-Clause and Restic under BSD-2-Clause. Both can be self-hosted at no software cost.
Can I run BorgBackup and Restic with Docker?
BorgBackup: check the project docs for container support. Restic: yes.