Restic and Borg are both deduplicating, encrypted, snapshot-based backup tools, and the practical difference is where each can store data. Restic writes to local disk, SFTP, REST, S3, Backblaze B2, Azure, Google Cloud and more, so a plain object-storage bucket works as a target. Borg requires either a local filesystem or a remote host running the Borg binary over SSH, which is why hosted Borg providers exist and hosted Restic targets are simply REST or SFTP endpoints.
Borg generally produces smaller repositories because it compresses by default and uses a content-defined chunker tuned for that. Restic is written in Go, ships as a single static binary with no dependencies, and runs natively on Linux, macOS, Windows and FreeBSD, where Borg is Python and effectively Unix-only. Choose Borg for maximum compression to a server you control, Restic for portability and storage-backend freedom.
On this page
Restic and Borg, side by side
| Restic | Borg | |
|---|---|---|
| License | BSDSame on both | |
| Written in | Go, single static binary | Python, with C extensions |
| Platforms | Linux, macOS, Windows, FreeBSD | Linux, macOS, BSD (Windows via WSL) |
| Storage targets | Local, SFTP, REST, S3, B2, Azure, GCS, rclone | Local disk, or SSH to a host running Borg |
| Compression | Optional (zstd since 0.14) | On by default |
| Deduplication | Content-defined chunkingSame on both | |
| Append-only mode | Via repository permissions | Native server-side flag |
Borg usually produces smaller repositories. Restic goes more places: if the destination is object storage or a managed endpoint, Restic is the one that can talk to it.
Compression and deduplication
Borg typically compresses text-heavy data such as source code, logs and configs better. Restic has used zstd by default since 0.14, so the gap is smaller than it was.
On binary, media and already-compressed files neither tool helps much, and compression is skipped automatically. Deduplication is roughly comparable: Borg's variable-length chunking can win on some workloads, while Restic's chunking is predictable across all data types.
Backend support
Backend support is restic's biggest advantage. It natively talks to SFTP, S3-compatible storage, Backblaze B2, Azure Blob, Google Cloud Storage and anything rclone can reach.
Borg natively supports local disks and SSH/SFTP only, and needs rclone as a wrapper for cloud backends. If you need S3 or B2, or several cloud targets, restic is the cleaner choice.
Security model
Both tools encrypt everything client-side before upload, so neither the storage provider nor an attacker who compromises the storage can read your data without the key.
Borg's SSH append-only mode stops an attacker who controls your backup client from deleting existing backups. Restic's rest-server offers similar protection through its own append-only mode.
Which to use in 2026
For new setups in 2026, restic is the practical default: broader backend support, better Windows handling and a simpler mental model. If you already run Borg and it works, there is no reason to switch.
Migration is painful, and the tools are comparable in reliability for Linux server backups. The right tool is the one you will actually maintain and test restores on.
Restic in 2026: what has changed
Restic has been the faster-moving project. Releases 0.16 through 0.18 brought better large-repository performance and an improved copy command for moving between backends. Upgrading is a drop-in binary replace with no dependency chain.
Borg 2.0 has been in development for several years, with a new archive format and better performance, but moving from Borg 1.x takes manual steps. Existing Borg users should plan for that.
Hosted backup services: restic vs Borg
Hosted services follow the tool split. BorgBase is the main managed option for Borg, with EU and US regions and strong Borg tooling. ServerCrate is built for restic over HTTPS: a private ZFS-backed vault per user, flat pricing and no egress fees.
We also offer hosted Borg repositories with append-only keys, and we publish a scheduled end-to-end restore drill as proof that restores work. See the BorgBase vs ServerCrate comparison for the details.
First-run setup commands, side by side
What you type for a first backup, with the binary installed (apt, pacman or the static binary) and an SFTP destination:
Restic: three commands to first backup
export RESTIC_REPOSITORY=sftp:user@host:/path/to/repo
export RESTIC_PASSWORD=your-password
restic init
restic backup /etc /home /var/wwwThat's the whole setup: restic init creates the encrypted repository and restic backup creates a snapshot. No config file, no extra tooling.
Borg: four commands, plus SSH config
# Configure SSH key auth with the remote first
export BORG_REPO=ssh://user@host/path/to/repo
export BORG_PASSPHRASE=your-password
borg init --encryption=repokey-blake2 $BORG_REPO
borg create $BORG_REPO::'{hostname}-{now}' /etc /home /var/wwwBorg needs SSH key auth on the server side, because password SSH does not play well with Borg's SSH multiplexing. After that the workflow is similar, with a different repository format.
Retention policy syntax, compared
Both tools use the same retention concepts with slightly different flags. A typical homelab policy of 7 daily, 4 weekly and 12 monthly snapshots looks like this in each:
Restic retention
restic forget \
--keep-daily 7 \
--keep-weekly 4 \
--keep-monthly 12 \
--pruneBorg retention
borg prune -v --list $BORG_REPO \
--keep-daily 7 \
--keep-weekly 4 \
--keep-monthly 12Nearly identical. The Restic retention policy guide covers yearly retention, tag-based pruning and common mistakes.
Single-file restore: how each tool handles it
Both tools let you browse a snapshot and pull out single files, with different commands:
Restic: mount and cp
mkdir /mnt/backup
restic mount /mnt/backup
# browse the tree, find your file
cp /mnt/backup/snapshots/latest/home/user/file.txt /tmp/
fusermount -u /mnt/backupBorg: extract with path filter
borg list $BORG_REPO
borg extract $BORG_REPO::snapshot-name home/user/file.txtRestic's mount feels natural if you are used to Unix file operations; Borg's extract is faster when you know the path. More in the Restic restore guide, and verify your restic backups before you need one.
Performance benchmarks: the practical reality
Both tools are fast enough that network upload speed is almost always the bottleneck. In practice they tie on backup and restore throughput, and differ only on integrity checks:
check --read-data tends to be faster for integrity audits, especially over remote SFTP.When Borg is genuinely better
Borg wins on compression of text-heavy data, on its native append-only SSH model, and whenever a healthy Borg setup already exists.
- Compression-heavy workloads.Source code, log archives, configs. Borg's tuning historically gives 5 to 15% better compression on text-dominated datasets.
- SSH append-only security model.Borg's native
--append-onlymode means a compromised backup client cannot delete existing snapshots. Restic needs rest-server for this. - You already have a working Borg setup.Migration pain is real, and no tool-level advantage justifies rebuilding a healthy Borg repository.
When Restic is genuinely better
Restic wins on platform coverage, cloud backends, ease of learning and managed hosting options.
- Multi-platform environments (includes Windows).Borg on Windows needs WSL. Restic has a native Windows binary.
- Cloud backend variety.Restic natively supports S3, Backblaze B2, Azure Blob, GCS, SFTP and rclone. Borg is SFTP-first; cloud needs rclone as a wrapper.
- Simpler mental model for new users.Fewer concepts, clearer docs, simpler failure modes.
- Managed hosting options.Restic hosts like ServerCrate give you connection strings to paste, not SSH keys to provision and rotate.
Who should not use ServerCrate
ServerCrate is the wrong fit in two cases.
- If you need 99.999% SLA.We're a small team in one Los Angeles facility. rsync.net offers stricter contractual SLAs.
- If you need EU data residency.Today we're US-only; BorgBase has Frankfurt and Helsinki options.
Restic vs Borg FAQ
Further reading
If you are still weighing options, the wider field is covered in Restic alternatives compared, and Restic vs Tarsnap covers the other tool people most often migrate away from.
If you settle on Restic, this comparison of restic repository hosts covers price per TB, egress and append-only for nine options.