Skip to content

borg

Deduplicating, encrypted backup tool for Linux and macOS admins who back up over SSH

Permissive (OSI) · BSD-2-Clause
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

69

Health

Active

Overview

Stars

13,947

Last commit

today

Nov 2026

Repository age

11 years

since May 2015

Latest version

1.4.5

Jul 2026

Contributors

–

4 active in 90 days

Releases

3

last 12 months

Language

Python

Borg is a command-line backup program written in Python, with the heavy work in C and Cython. It splits files into variable-length chunks and stores only chunks it has not seen before. Because of that, daily backups only add what changed, even if you move files around or share one repository between machines.

You can encrypt data on the client with AES-OCB or chacha20-poly1305, so the backup target does not need to be trusted. Authentication-only modes exist if you do not need confidentiality. Compression is optional, and lz4 is one of the supported algorithms. Borg2 offers several chunkers, including fastcdc as the default and keyed AES-based ones that make fingerprinting attacks harder. It can also obfuscate chunk sizes.

Borg runs on Linux and macOS and is BSD-2-Clause licensed. It has no server of its own to host; you point it at a local path or a remote machine over SSH. It fits as a free alternative to commercial backup agents, though no specific product is matched. The master branch is Borg2, which is in beta and not meant for production backups.

Who it's for

Linux sysadmins backing up servers to a remote host over SSH

Client-side encryption and deduplication keep storage small and let you use an untrusted target.

Skip if: You want a graphical interface or a managed cloud service.

Home users with a NAS or spare disk

Incremental, deduplicated archives make nightly backups of large folders cheap in space.

Skip if: You need a Windows-native backup client.

People backing up VM images or raw disks

Chunk-level deduplication stores only the changed parts of large files.

Skip if: Your backups are mostly already-compressed unique media, where deduplication helps little.

The problem it solves

Full backups of the same data waste disk space and bandwidth, and storing them on someone else's machine exposes your files. Borg stores only new chunks and encrypts them before they leave your machine.

Strengths

  • Content-defined chunking dedupes across files, machines and backups
  • Client-side 256-bit authenticated encryption with AES-OCB or chacha20-poly1305
  • Performance-critical code in C/Cython with SIMD paths for NEON, AVX2 and AVX-512
  • BSD-2-Clause license, first commit in 2015, active with 3 releases last year

Trade-offs

  • Command-line only, with no built-in graphical interface
  • Master branch is Borg2 beta; repos may need re-creating between betas
  • Supported on Linux and macOS; no native Windows support listed
  • No built-in scheduler or hosted service

borg replaces

Frequently asked questions

Is Borg free?

Yes. It is free software under the BSD-2-Clause license.

Should I use Borg2 for production backups?

No. The master branch is Borg2 beta, which may break between releases and has no beta-to-beta upgrade path. Use a stable release for production.

Does it encrypt backups?

Yes. Data is encrypted on the client with AES-OCB or chacha20-poly1305. Authentication-only modes are available too.

Which platforms does it run on?

Linux and macOS, from the command line. A Homebrew formula is available.

Other Veeam alternatives

Compare all 4 Veeam alternatives →

Similar tools in Backup and archiving software

Kopia

Backup and archiving software

Encrypted, deduplicated file backup to cloud, NAS or local disks, with CLI and GUI

15k 815 today Active Apache-2.0

Replaces Veeam

databasus

Backup and archiving software

Self-hosted PostgreSQL backup tool with scheduling, cloud storage and restore checks

9.3k 620 today Thriving Apache-2.0

Wayback

Backup and archiving software

Command-line and chat-bot tool that saves web pages to Internet Archive, IPFS and disk

2.3k 88 today Slowing GPL-3.0

autorestic

Backup and archiving software

YAML-configured backup command-line tool that wraps restic for multiple locations and

1.9k 103 8 months ago Dormant Apache-2.0

duplicati

Backup and archiving software

Encrypted, incremental backup client that stores data on cloud and remote servers

15k 1.1k today Active MIT

Replaces Veeam

imessage-exporter

Backup and archiving software

Command-line tool that exports and archives your iMessage history to text or HTML

5.8k 322 8 days ago Active GPL-3.0