Best Linux Server Backup Tools: Restic vs Borg vs Duplicacy

Best Linux Server Backup Tools: Restic vs Borg vs Duplicacy

A server backup is only useful if you can restore from it under pressure, at 2 a.m., with a customer waiting. That test narrows the field fast. Among linux server backup tools, three names come up again and again: Restic, BorgBackup, and Duplicacy. All three deduplicate data, encrypt backups, and run well on a headless Linux server. They differ in how they store data, which storage backends they support, and how much setup they ask from you.

This comparison covers what each tool does well, where each one falls short, and which one fits common server setups. No tool here wins every category, so the right pick depends on where your backups live and who restores them.

What to Check Before You Pick a Backup Tool

Before comparing features, pin down your own requirements. A backup tool that works for a single VPS may not suit a fleet of servers writing to shared object storage.

  • Storage backend: local disk, a second server over SSH, or object storage such as S3-compatible storage.
  • Encryption: backups should be encrypted before they leave the server, especially when they land on third-party storage.
  • Deduplication: chunk-level deduplication keeps repeated backups small, which matters when you back up daily.
  • Restore speed and testing: check how you list snapshots, mount a backup, and restore a single file without restoring everything.
  • Automation: the tool should run from cron or systemd timers, report failures, and prune old snapshots on its own.

Write down your answers first. They turn a long feature list into a short decision.

Restic: Simple, Portable, and Easy to Automate

Restic is an open source backup program distributed as a single binary. You point it at a repository, set a password, and start taking snapshots. Each snapshot is a full point-in-time view of your files, but deduplication means only changed chunks take up new space. Encryption is built in, so repository contents stay unreadable without the password.

Restic supports a long list of backends: local disk, SFTP, S3-compatible storage, and many cloud providers through its native backends or rclone. That range makes it a good fit when backups need to leave the server and land on object storage. Commands stay short and predictable: init, backup, snapshots, restore, forget, and prune cover most daily work.

Restic works well for one-server setups and for fleets where each server writes to its own repository. It does not deduplicate across separate repositories, so shared-storage savings across many machines are limited. It also has no official graphical interface, though third-party front ends exist. If your backups include cluster state, read our guide on how to back up etcd for Kubernetes disaster recovery before you design the schedule, since database and cluster state need their own consistent snapshots.

BorgBackup: Strong Local Backups with Compression

BorgBackup, usually called Borg, is an open source deduplicating backup program with a loyal following among Linux administrators. Like Restic, it deduplicates at the chunk level and encrypts repositories. Where Borg stands out is compression: it offers several compression methods, including zlib, LZ4, and Zstandard, so you can trade CPU time for smaller repositories.

Borg also supports append-only repositories, a mode that blocks deletion and modification of existing archives from a compromised client. That feature helps when a server gets breached and the attacker tries to wipe backups reachable over SSH. Borg mounts archives as filesystems, which makes browsing an old backup and pulling out one file straightforward.

The trade-off is backends. Borg targets local disk and SSH, with no native object-storage backend. If you want Borg archives on S3, you typically pair it with rclone or a similar layer. The restic vs borg question therefore often comes down to storage: Borg fits local and SSH targets with compression, while Restic fits object storage more directly. Borg backup linux setups also reward a bit more tuning, since compression choice and pruning policy shape repository size over months.

Duplicacy: Deduplication Across Machines, Plus a GUI

Duplicacy is a backup tool built around lock-free deduplication. Multiple computers can back up to the same storage without coordinating through a lock, and identical chunks across machines are stored once. For a fleet of similar servers, that design can cut storage use compared with one repository per machine.

Duplicacy supports local disk, SFTP, and major cloud storage backends, and it offers a web-based interface alongside its command-line tool. The graphical interface helps teams where not everyone is comfortable restoring from a terminal. Snapshot IDs, revision history, and pruning rules are all manageable from the interface.

Licensing differs from the other two tools. The Duplicacy command-line version is free for personal use, while commercial use and the web edition are paid, so check official pricing before you commit a fleet to it. Duplicacy backup workflows also take a little longer to learn, because its chunking, snapshot IDs, and storage model differ from the repository model Restic and Borg use. The payoff is a setup that scales across machines sharing one storage target.

Restic vs Borg vs Duplicacy Side by Side

The table below sums up the practical differences. Treat it as a starting point, then test your top two candidates with a real restore.

Feature Restic BorgBackup Duplicacy
License Open source Open source CLI free for personal use; commercial and web editions paid (check official pricing)
Deduplication Yes, per repository Yes, per repository Yes, across machines sharing storage
Encryption Built in Built in Built in
Compression Limited options Multiple methods including Zstandard Available
Storage backends Local, SFTP, S3-compatible, many cloud backends Local, SSH (object storage via rclone) Local, SFTP, major cloud storage
Graphical interface No official GUI No official GUI Web edition available
Append-only mode Append-only support via backend settings Native append-only repositories Storage-level controls vary by backend
Best for Object storage and simple automation Local and SSH backups with compression Multiple machines sharing one storage target

Which Linux Server Backup Tools Fit Your Server?

Pick Restic if your backups go to object storage and you want short commands, many backends, and a single binary with no extra layers. It is a solid default for a VPS that backs up nightly to S3-compatible storage.

Pick Borg if your backups stay on local disk or a second server over SSH, and compression plus append-only protection matter to you. Borg suits administrators who tune pruning and compression once and then leave the schedule alone.

Pick Duplicacy if several servers back up to shared storage and you want cross-machine deduplication, or if your team needs a web interface for restores. Just confirm the license cost first, since it is the only paid option of the three.

When two tools look equal on paper, run both for a week. Back up the same directory, restore a single file from each, and time the restore. The tool you can operate calmly during a test is the tool you will operate calmly during an incident.

Backup Habits That Matter More Than the Tool

The tool choice gets attention, but backup habits decide whether a restore works. Test restores on a schedule, not only after a failure. Restore into a temporary directory and check that the files open, that database dumps load, and that permissions survived. Keep at least one copy off the server itself, because a backup on the same disk as the data is not a backup.

Backups also sit inside a wider server routine. Hardening the server limits how an attacker reaches backup credentials in the first place, so pair your backup schedule with the steps in our Ubuntu 24.04 production security checklist. Monitor the backup job itself, not just the server: a silent cron failure looks identical to a healthy server until the day you need the backup. If you do not already watch your services, our comparison of uptime monitoring tools for servers covers options that alert you when a job or service stops responding.

Finally, document the restore steps. Write down the repository location, the password storage method, and the exact restore commands, then keep that note somewhere other than the server being backed up. A backup you cannot restore because the instructions died with the server helps no one.

Ditulis oleh

Firdaus Safari Putra

Founder, PT FirKaizen Digital Solutions

Firdaus Safari Putra adalah founder PT FirKaizen Digital Solutions. Ia membangun dan mengoperasikan infrastruktur server di balik panduan ini, dan menulis berdasarkan apa yang benar-benar ia jalankan, uji, dan ukur — bukan teori.