BorgBackup

BorgBackup: Deduplicated, Encrypted Backups That Don’t Waste Time (or Space) There’s a certain type of backup admin who doesn’t care about GUIs, doesn’t want some cloud agent phoning home, and really just wants to back up files efficiently, securely, and locally. That’s who BorgBackup was built for.

It’s fast. It’s battle-tested. It’s deduplicating, compressing, and encrypting every backup you throw at it — with a CLI that makes scripting and automation feel like second nature.

If you’ve ever

OS: Windows / Linux / macOS
Size: 0.0 MB
Version: 1.4.1
🡣: 12,188 stars

BorgBackup: Deduplicated, Encrypted Backups That Don’t Waste Time (or Space)

There’s a certain type of backup admin who doesn’t care about GUIs, doesn’t want some cloud agent phoning home, and really just wants to back up files efficiently, securely, and locally. That’s who BorgBackup was built for.

It’s fast. It’s battle-tested. It’s deduplicating, compressing, and encrypting every backup you throw at it — with a CLI that makes scripting and automation feel like second nature.

If you’ve ever used rsync and thought “I wish this had versioning, encryption, and didn’t copy the same file twice,” BorgBackup is what you were looking for all along.

How It Works (Roughly)

Borg reads files, splits them into chunks, hashes those chunks, and stores only what’s new. Everything gets compressed and (optionally) encrypted — before it hits disk or the wire.

Each backup is a snapshot. But you can mount them. Browse them. Diff them. Restore individual files. It’s like having a versioned filesystem in a single backup repo — without actually needing ZFS or Btrfs.

And it all happens from the command line. Quietly.

Real-World Use: Simple, Scriptable, Reliable

Backing up /etc, /home, and some app configs:

borg init –encryption=repokey /mnt/backup/borg
borg create /mnt/backup/borg::$(date +%F) /etc /home /var/lib/app

Want to list archives?

borg list /mnt/backup/borg

Mount for browsing?

borg mount /mnt/backup/borg::2025-07-20 /mnt/borgview

It’s fast. It’s quiet. It just works.

Why People Like It

Feature Details
Deduplication Chunk-based, content-aware — saves tons of space
Compression lz4, zlib, zstd — configurable per repo
Encryption AES-CTR with HMAC — secure by default
Snapshot-style backups Time-based archives you can browse or restore from
CLI-first design Great for cron, scripts, and headless setups
Mountable archives Fuse support lets you mount backups like a directory
Remote backups Works over SSH without any agents
Pruning policies Keep last N, daily/weekly/monthly, etc. — built-in logic

Installation (Ubuntu Example)

sudo apt update
sudo apt install borgbackup

Initialize a repo, set up cron, and you’re off. No background service, no cloud login, no weird formats.

Some Caveats

– Doesn’t do bare-metal or image-based backups — file-level only

– One repo can’t hold multiple users’ data easily (per-user repo is the norm)

– Initial setup may feel cryptic (especially key handling)

– GUI? Not really — it’s CLI all the way (though Vorta exists as a frontend)

If backups need to be secure, efficient, and under full control, BorgBackup is a tool worth sticking with — especially for admins who prefer transparency over automation magic.

Related articles

What is BorgBackup?

BorgBackup is a free, open-source backup software that provides a robust and efficient way to manage backups. It is designed to be highly customizable and scalable, making it suitable for both personal and enterprise use. BorgBackup allows users to create encrypted and compressed backups of their data, which can be stored locally or offsite. With its powerful features and ease of use, BorgBackup is an excellent alternative to expensive backup suites.

Main Features of BorgBackup

BorgBackup offers a range of features that make it an ideal choice for backup management. Some of its key features include:

  • Encrypted repositories for secure data storage
  • Compression and deduplication for efficient storage use
  • Support for local and offsite backups
  • Repeatable jobs and retention rules for simplified backup management
  • Test restores for ensuring data integrity

Installation Guide

Step 1: Download and Install BorgBackup

To get started with BorgBackup, you need to download and install it on your system. You can download the software from the official BorgBackup website. Follow the installation instructions for your specific operating system.

Step 2: Configure BorgBackup

After installing BorgBackup, you need to configure it to suit your backup needs. This includes setting up the repository, creating a backup job, and specifying the data to be backed up.

Using BorgBackup for Offsite Backups

Setting Up an Offsite Repository

To use BorgBackup for offsite backups, you need to set up an offsite repository. This can be done by creating a new repository on a remote server or cloud storage service.

Configuring Offsite Backup Jobs

Once you have set up the offsite repository, you can configure BorgBackup to create offsite backups. This includes specifying the data to be backed up, the frequency of backups, and the retention rules.

BorgBackup Local and Offsite Backup Strategy

Local Backup Strategy

A local backup strategy involves creating backups of your data on a local machine or storage device. This provides fast access to your data in case of a disaster.

Offsite Backup Strategy

An offsite backup strategy involves creating backups of your data on a remote server or cloud storage service. This provides an additional layer of protection against data loss due to local disasters or hardware failures.

Pros and Cons of BorgBackup

Pros

BorgBackup offers several advantages, including:

  • Highly customizable and scalable
  • Encrypted and compressed backups for secure and efficient storage
  • Support for local and offsite backups
  • Repeatable jobs and retention rules for simplified backup management

Cons

Some of the limitations of BorgBackup include:

  • Steep learning curve for beginners
  • Requires technical expertise for advanced configuration
  • Not suitable for very large datasets

FAQ

Is BorgBackup free?

Yes, BorgBackup is completely free and open-source.

Is BorgBackup secure?

Yes, BorgBackup uses encrypted repositories and secure communication protocols to ensure the security of your data.

Can I use BorgBackup for offsite backups?

Yes, BorgBackup supports offsite backups to remote servers or cloud storage services.

BorgBackup Setup, Backup Jobs, and Test Restore Checklist for Reliable Data Protection

BorgBackup: Pro Setup and Configuration Guide

BorgBackup is a free, open-source, and powerful backup software that offers a robust solution for local and offsite data protection. Its features, including repeatable jobs, retention rules, and encrypted repositories, make it an ideal alternative to expensive backup suites. In this article, we will walk you through the process of setting up and using BorgBackup for your backup needs.

Understanding BorgBackup Architecture

BorgBackup is designed to be simple, yet powerful. It uses a client-server architecture, where the client initiates the backup process, and the server stores the backup data. The data is stored in a repository, which can be either local or remote.

BorgBackup Backup

The repository is the central component of BorgBackup, and it’s where all the backup data is stored. The repository can be encrypted, and it supports deduplication, which means that only unique data is stored, reducing the storage requirements.

Installation and Setup

Installing BorgBackup is straightforward. It’s available for most Linux distributions, and it can be installed using the package manager.

Here are the steps to install BorgBackup on Ubuntu:

  • sudo apt update
  • sudo apt install borgbackup

Once installed, you need to create a repository. You can do this using the borg init command.

Here’s an example:

borg init --encryption=repokey /path/to/repository

This will create a new repository at the specified path, with encryption enabled.

Creating Backup Jobs

Once the repository is created, you can start creating backup jobs. A backup job is a set of files and directories that you want to backup.

You can create a backup job using the borg create command.

Here’s an example:

borg create --stats /path/to/repository::archive /path/to/files

This will create a new archive in the repository, containing the files and directories specified.

Retention Rules

Retention rules are used to define how long the backup data should be kept. BorgBackup supports various retention rules, including time-based and space-based rules.

You can define retention rules using the borg prune command.

Here’s an example:

borg prune --keep-within=1d --keep-daily=7 --keep-weekly=4 /path/to/repository

This will keep the last day’s worth of backups, as well as daily backups for the last week, and weekly backups for the last month.

Reports and Test Restores

BorgBackup provides detailed reports on the backup process, including the files and directories that were backed up, and any errors that occurred.

You can view the reports using the borg list command.

Here’s an example:

borg list /path/to/repository

This will display a list of all the archives in the repository, along with their size and creation date.

Test restores are an essential part of any backup strategy. BorgBackup allows you to test restore your backups using the borg extract command.

Here’s an example:

borg extract /path/to/repository::archive /path/to/restore

This will extract the files and directories from the specified archive, to the specified location.

Feature BorgBackup Other Backup Software
Encryption Yes No
Deduplication Yes No
Retention Rules Yes Yes
Reports Yes No
Test Restores Yes No
Software Cost Features
BorgBackup Free Encryption, deduplication, retention rules, reports, test restores
Other Backup Software Expensive Encryption, retention rules
Use Case BorgBackup Other Backup Software
Local Backup Yes No
Offsite Backup Yes No
Cloud Backup No Yes

In conclusion, BorgBackup is a powerful and flexible backup software that offers a robust solution for local and offsite data protection. Its features, including encryption, deduplication, retention rules, reports, and test restores, make it an ideal alternative to expensive backup suites.

BorgBackup features

Related articles

Other articles

Submit your application