talira

BorgBackup

Deduplicating archiver with compression and authenticated encryption

open sourceBSD-3-Clauseself-hostablefree

BorgBackup (Borg) is a deduplicating backup program for the command line. Content-defined chunking stores each chunk once across files, archives and every machine that shares a repository, with optional lz4, zstd, zlib or lzma compression and client-side authenticated encryption (256-bit AES with HMAC-SHA256 in the stable 1.4 line), so the server holding the backups only sees ciphertext. Repositories live on a local or USB disk or on any host reachable over SSH, with no daemon or agent, and archives can be mounted with FUSE to browse and restore files. It runs on Linux, macOS and the BSDs, Borg repository hosting is sold by BorgBase, Hetzner and rsync.net, and front ends such as Vorta and borgmatic build on it. BSD-3-Clause.

Ways to install

Problems it solves

  • back up my Linux server every night to another box over SSH without installing an agent
  • nightly backups of the same files keep eating disk; I want only the changed chunks stored
  • encrypt my backups on the client so the storage provider can't read them
  • back up several machines to one repository and store files they share only once
  • mount last Tuesday's backup like a folder and copy one file back out
  • keep 7 daily, 4 weekly and 6 monthly archives and prune the rest automatically
  • back up my laptop to an external USB drive with deduplication and compression
  • my rsync backup script copies everything every time and has no history of old versions
  • choose between fast lz4 and strong lzma compression for my backup archives
  • a single-file backup binary I can drop onto a server without installing Python
  • verify that my backup repository isn't corrupted before I need to restore from it
  • back up a whole disk image of a VM efficiently, storing only blocks that changed
  • back up my home server to Hetzner Storage Box or rsync.net with encryption
  • an open source backup tool my home lab can script from cron and systemd timers
  • protect my offsite backups from a compromised backup server reading my data

Features

  • deduplication by content-defined chunking across files, archives and machines sharing a repository
  • client-side authenticated encryption: 256-bit AES with HMAC-SHA256 (Borg 1.4)
  • optional obfuscation of file and chunk sizes to make fingerprinting harder
  • compression with lz4, zstd, zlib or lzma
  • repositories on local disks or any remote host reachable over SSH; faster with Borg installed on the remote host
  • archives mountable as FUSE file systems to browse and restore with a file manager
  • no daemons or agents to run
  • single-file binaries for Linux, macOS and FreeBSD; packages in most distributions; pip install borgbackup
  • local caching and quick detection of unmodified files
  • documented recipes for backing up entire disk images, pull mode and non-root users
View 1 more
  • Borg 2.0 beta adds sftp, http(s), S3, B2 and rclone repositories, AES-OCB or ChaCha20-Poly1305 and Blake3

Limitations

  • No native Windows version: Windows support is experimental, through the Windows Subsystem for Linux (WSL) or Cygwin34
  • Doesn't allow two backups to write to one repository at once: only one process can have write access at a time5

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what BorgBackup does.

  1. Duplicati Store securely encrypted backups on cloud storage services
  2. Proxmox Backup Server Open-source enterprise backup for VMs, containers and physical hosts
  3. rustic Fast, encrypted and deduplicated backups, powered by Rust
  4. Duplicacy A new generation cross-platform cloud backup tool
  5. Plakar Open source backup engine: encrypted, deduplicated, verifiable and scalable
  6. restic Fast, secure, efficient backup program

Compare BorgBackup with the top 3