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.

Not the right match-up?
FeatureBorgBackupRestic
Deploy effortRead-the-docs projectUnder-an-hour setup
Health score94 · Excellent99 · Excellent
CategoryBackup & RecoveryBackup & Recovery
LicenseBSD-3-ClauseBSD-2-Clause
LanguagePythonGo
Setup difficultyMediumMedium
Min. RAM256 MB256 MB
Deploymentbinary, bare-metalbinary, docker
GitHub stars★ 13,756★ 36,194
First released20152015
ReplacesCarbonite, BackblazeBackblaze, 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

Read the full BorgBackup guide →

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

Read the full Restic guide →

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

YouPick
Off-site = B2/S3/Wasabi/anything-rclonerestic
Off-site = SSH box, NAS, BorgBaseBorgBackup
Append-only ransomware posture, first-classBorgBackup
One static binary across odd platformsrestic
Browse archives as a filesystem, daily habitBorgBackup
Simplest possible cloud setup this weekendrestic

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
BorgBackup details

Choose Restic if…

  • Strong encryption
  • Efficient deduplication
  • Wide backend support

Watch out for

  • Command-line only
  • No built-in scheduler
Restic details

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.

Related comparisons