Command line backup tools are the most reliable way to protect a Linux desktop or server, because they run the same everywhere, use few resources and are easy to schedule. The five worth knowing in 2026 are rsync, BorgBackup, restic, Kopia and rclone, with tar, Timeshift and Duplicity as useful extras. Below is what each does best, the current version and a short example to get started.
The tools at a glance
| Tool | Best for | Encryption | Version (Oct 2026) |
|---|---|---|---|
| rsync | Fast mirror copies, local or over SSH | No (SSH protects transfers) | 3.5.1 |
| BorgBackup | Versioned backups to disks and SSH servers | Yes | 1.4.5 stable, 2.0 in beta |
| restic | Versioned backups to local, SFTP or cloud | Always on | 0.19.1 |
| Kopia | Snapshots with optional desktop GUI | Always on | 0.23.1 |
| rclone | Copying files to cloud storage | Optional crypt remote | 1.75.2 |
1. rsync: the simple mirror
rsync copies only what changed since the last run, which makes repeat backups fast whether the destination is a USB drive or another machine over SSH. It preserves permissions, ownership, timestamps and links when you run it in archive mode, which is the a flag. Add the delete option only when you want the destination to be an exact mirror, because it removes files there that no longer exist on the source. The project released version 3.5.0 in August 2026 as a major security update, followed by 3.5.1 in September, so update through your package manager if your distro ships an older build.
The limitation is that rsync keeps one copy, not a history. If a file gets corrupted or encrypted by ransomware and you sync afterwards, the damage is copied too.
2. BorgBackup: deduplicated, encrypted history
Borg stores each backup as an archive inside a repository, splits data into chunks and saves each chunk only once. Daily backups of a home folder therefore take little extra space. It supports compression and authenticated encryption, and repositories can sit on a local disk or a server you reach over SSH. You create the repository once with borg init and pick an encryption mode (repokey is the common choice), then back up and list archives like this:
borg create /mnt/backup/borg::docs2026 ~/Documentsborg list /mnt/backup/borgborg extract /mnt/backup/borg::docs2026(restores into the current folder)
The stable branch is 1.4, currently 1.4.5. Borg 2.0 is still in beta with a new repository format, so stick with 1.4 for production backups.
3. restic: one binary, many destinations
restic offers a similar deduplicated, versioned approach, but ships as a single binary and talks to local folders, SFTP servers and many cloud object stores. Encryption is always on. Set the repository and a password file as environment variables, then run a few short commands:
export RESTIC_REPOSITORY=/mnt/backup/resticexport RESTIC_PASSWORD_FILE=~/.restic_passrestic init, thenrestic backup ~/Documentsrestic snapshotsto see your history andrestic checkto verify the repository
To restore, use restic restore with a snapshot ID, or the word latest, and the target option pointing at an empty folder.
4. Kopia: snapshots with a GUI if you want one
Kopia also encrypts, deduplicates and compresses, and it supports local disks, SFTP, WebDAV and cloud storage. What sets it apart is that the same engine powers both the command line tool and an optional desktop app, so you can script backups on a server and still browse snapshots visually on a laptop. After connecting a repository, kopia snapshot create ~/Documents takes a snapshot and kopia snapshot list shows them. The current release is 0.23.1.
5. rclone: the bridge to cloud storage
rclone is not a versioned backup tool on its own. It is a sync and copy utility that supports dozens of cloud services, from S3 compatible storage to consumer drives. Run rclone config to add a remote, then rclone copy ~/Documents mycloud:backup/docs to upload. Wrap a remote in a crypt remote to encrypt file contents and names before they leave your machine. Many people pair it with restic, which can use rclone as a backend.
Extras: tar, Timeshift and Duplicity
- tar is on every Linux system and is perfect for a quick archive:
tar czf home.tar.gz ~/Documentscreates a compressed file andtar xzf home.tar.gzunpacks it. - Timeshift, maintained by the Linux Mint team, takes system snapshots with rsync or Btrfs so you can roll back a bad update. It has a command line mode with create, list and restore options. By default it leaves out personal files, so it complements a data backup rather than replacing it.
- Duplicity makes encrypted incremental backups with GnuPG and supports many remote backends. It is still maintained, with version 3.2.1 released in September 2026.
FAQ
Which tool should a beginner pick?
restic. It is a single program, encrypts by default, has clear commands and works with local drives and the cloud.
How do I run backups automatically?
Put your backup command in a small shell script and schedule it with cron (open your crontab with the e option) or a systemd timer. Check the logs now and then to confirm it ran.
Is rsync a real backup?
It is a copy, not a versioned backup. Combine it with dated folders or use Borg, restic or Kopia if you need older versions of files.
How many copies should I keep?
Follow the 3 2 1 rule: three copies of your data, on two different types of storage, with one copy offsite or in the cloud.
The verdict
For most Linux users, restic or BorgBackup covers versioned, encrypted backups, rclone gets a copy offsite and Timeshift protects the system itself. Keep rsync and tar in your toolbox for quick copies. Whatever you choose, test a restore today, because a backup you have never restored is only a hope.
Updated October 2026: rewritten with current versions of rsync, Borg, restic, Kopia, rclone, Timeshift and Duplicity, plus starter commands for each.
Featured photo: Nick on Unsplash.
About this article: GeekBlog covers U.S. technology news, AI, phones, smartwatches and gaming. Every story is written and checked under our Editorial Policy. Spotted a mistake or have a story tip? Contact our editors.

