# Install borgbackup with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Deduplicating archiver with compression and authenticated encryption. Version 1.4.4 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:borgbackup
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install borgbackup
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install borgbackup
```

  Evidence: MacPorts ports tree: sysutils/borgbackup/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add borgbackup
```

  Evidence: Alpine Linux edge package indexes: borgbackup from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install borgbackup
```

  Evidence: Debian stable package indexes: borgbackup from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install borgbackup
```

  Evidence: Fedora Rawhide package metadata: borgbackup from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#borgbackup
```

  Evidence: nixpkgs package indexes: pkgs/by-name/bo/borgbackup/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S borg
```

  Evidence: Arch Linux sync databases: borg from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install borgbackup
```

  Evidence: openSUSE Tumbleweed package metadata: borgbackup from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:borgbackup
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/borgbackup>
- **Version:** 1.4.4
- **Source summary:** Deduplicating archiver with compression and authenticated encryption
- **Homepage:** <https://www.borgbackup.org/>
- **Repository:** <https://github.com/borgbackup/borg>
- **Upstream docs:** <https://borgbackup.readthedocs.io/en/stable>
- **License:** BSD-3-Clause
- **Source archive:** <https://files.pythonhosted.org/packages/eb/38/7fc8c8c7d9dba455f0e29f2ab5b77109313f4e58fe5014d0e1b7855de3cd/borgbackup-1.4.4.tar.gz>
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- borg (cli)
- borgfs (cli)
- borg (alias)
- borgfs (alias)

## Dependencies

- libb2
- lz4
- openssl@3
- python@3.14
- xxhash
- zstd

## Build dependencies

- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 1.4.4
- Local data: ok
- Upstream repository: https://www.borgbackup.org/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

BorgBackup is a deduplicating backup program with optional compression and authenticated encryption. It is one of the most important Unix-style backup CLIs in modern package repositories because it combines content-defined chunking, encrypted remote repositories over SSH, and scriptable command-line operation.

### Project history

Borg began publicly as a fork of Attic. The project's first GitHub issue, opened May 13, 2015, states that the fork was made to allow different approaches to development, goals, and policy, with emphasis on openness, accepting good pull requests, discussing changes publicly, and avoiding accidental compatibility breaks.

The official documentation describes Borg's core design: split files into variable-length chunks, store only chunks not already present in the repository, optionally compress data, and protect data with client-side authenticated encryption. Borg's SSH-friendly repository model made it practical for daily off-site backups to hosts that were not fully trusted.

Borg reached 1.0.0 on March 5, 2016. The current stable documentation is for Borg 1.4.4, while the master README warns that Borg 2 is in beta and should not be used for production backups, showing an active but compatibility-conscious split between stable backup users and future repository-format work.

### Adoption history

Borg's adoption grew among Linux, macOS, and BSD users who wanted a command-line alternative to rsync-style mirror backups and tarball rotation. The package-manager data in the input shows broad distribution coverage across Alpine, Homebrew, Debian, DNF, MacPorts, Nix, Arch, Ubuntu, and openSUSE, matching its role as infrastructure software rather than an application-specific tool.

The docs also call out JSON output for frontends, which helped a small ecosystem of wrappers and graphical tools build on the CLI instead of a Python API. That front-end contract matters because backup tools need automation, monitoring, and restore UX without weakening the reliability of the core command.

### How it is used

Typical use starts by creating a repository with encryption, then running `borg create` repeatedly so only new chunks are stored. Users commonly set `BORG_REPO`, back up to a local path or SSH remote, prune old archives, mount archives as file systems for browsing, and use JSON/log output in automation.

Borg's key workflows are daily encrypted off-site backups, space-efficient backups of large changing files such as VM images, multi-machine repositories where chunk deduplication crosses archive boundaries, and disaster-recovery restores from append-only or otherwise protected storage.

### Why package nerds care

BorgBackup is package-nerd significant because it is a backup tool where packaging quality directly affects data safety: users care about reproducible binaries, FUSE support for mounting archives, Python/Cython extension compatibility, OpenSSL or crypto backend behavior, and careful upgrade notes. Its package name also preserves the full project name while the CLI is simply `borg`.

It is also a canonical example of a serious CLI exposing machine-readable output for frontends while refusing to promise a stable internal Python API. That boundary is exactly the kind of packaging and integration decision that distribution maintainers and backup-tool operators notice.

### Timeline

- 2015: Borg fork goals issue opened, documenting the fork from Attic and project policy goals.
- 2015: 0.26.x through 0.29.x release series published before 1.0.
- 2016: Borg 1.0.0 published.
- 2025: Borg 2.0 beta releases continue for testing only.
- 2026: Borg 1.4.4 stable release published.

### Related projects

- Related projects include Attic, the project Borg forked from, plus command-line backup tools such as restic, duplicity, rsync-based backup systems, and Borg frontends that consume the documented CLI JSON output.

### Sources

- <https://borgbackup.readthedocs.io/en/stable/>
- <https://borgbackup.readthedocs.io/en/stable/internals/frontends.html>
- <https://github.com/borgbackup/borg/issues/1>
- <https://github.com/borgbackup/borg/releases/tag/1.0.0>
- <https://github.com/borgbackup/borg/releases/tag/1.4.4>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: <repository>/config, ~/.cache/borg/<repository-id>/config

## Credential files

- Linux: ~/.config/borg/keys/
- macOS: ~/Library/Application Support/borg/keys/
- Windows: C:\Users\<user>\AppData\Roaming\borg\keys\
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** borgbackup
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - borgbackup - 1.4.0-5: normalized package name match | Debian stable package indexes: borgbackup from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | deduplicating and compressing backup program | https://borgbackup.github.io/borgbackup/
- Debian apt - borgbackup-doc - 1.4.0-5: normalized package name match | Debian stable package indexes: borgbackup-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | deduplicating and compressing backup program (documentation) | https://borgbackup.github.io/borgbackup/
- Nix - borgbackup: normalized package name match | nixpkgs package indexes: pkgs/by-name/bo/borgbackup/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - borgbackup - 1.2.8-1: normalized package name match | Ubuntu 24.04 LTS package indexes: borgbackup from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | deduplicating and compressing backup program | https://borgbackup.github.io/borgbackup/
- Ubuntu apt - borgbackup-doc - 1.2.8-1: normalized package name match | Ubuntu 24.04 LTS package indexes: borgbackup-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | deduplicating and compressing backup program (documentation) | https://borgbackup.github.io/borgbackup/
- apk - borgbackup - 1.4.4-r1: normalized package name match | Alpine Linux edge package indexes: borgbackup from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Deduplicating backup program | https://www.borgbackup.org/
- apk - borgbackup-bash-completion - 1.4.4-r1: normalized package name match | Alpine Linux edge package indexes: borgbackup-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for borgbackup | https://www.borgbackup.org/
- apk - borgbackup-doc - 1.4.4-r1: normalized package name match | Alpine Linux edge package indexes: borgbackup-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Deduplicating backup program (documentation) | https://www.borgbackup.org/
- apk - borgbackup-fish-completion - 1.4.4-r1: normalized package name match | Alpine Linux edge package indexes: borgbackup-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for borgbackup | https://www.borgbackup.org/
- apk - borgbackup-fuse - 1.4.4-r1: normalized package name match | Alpine Linux edge package indexes: borgbackup-fuse from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Deduplicating backup program (FUSE support) | https://www.borgbackup.org/
- apk - borgbackup-pyc - 1.4.4-r1: normalized package name match | Alpine Linux edge package indexes: borgbackup-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for borgbackup | https://www.borgbackup.org/
- apk - borgbackup-zsh-completion - 1.4.4-r1: normalized package name match | Alpine Linux edge package indexes: borgbackup-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for borgbackup | https://www.borgbackup.org/
- dnf - borgbackup - 1.4.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: borgbackup from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A deduplicating backup program with compression and authenticated encryption | https://borgbackup.readthedocs.org
- pacman - borg - 1.4.4-1: normalized package name match | Arch Linux sync databases: borg from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Deduplicating backup program with compression and authenticated encryption | https://borgbackup.github.io/
- zypper - borgbackup - 1.4.1-6.3: normalized package name match | openSUSE Tumbleweed package metadata: borgbackup from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Deduplicating backup program with compression and authenticated encryption | https://github.com/borgbackup/borg
- zypper - borgbackup-bash-completion - 1.4.1-6.3: normalized package name match | openSUSE Tumbleweed package metadata: borgbackup-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Bash Completion for borgbackup | https://github.com/borgbackup/borg


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [lz4](https://www.automicvault.com/pkg/brew/lz4/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [xxhash](https://www.automicvault.com/pkg/brew/xxhash/) - Runtime dependency declared by Homebrew.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [kopia](https://www.automicvault.com/pkg/brew/kopia/) - Shares av.db curated category or tags: backup, cli, deduplication, encryption, system.
- [plakar](https://www.automicvault.com/pkg/brew/plakar/) - Shares av.db curated category or tags: backup, cli, deduplication, encryption, system.
- [rustic](https://www.automicvault.com/pkg/brew/rustic/) - Shares av.db curated category or tags: backup, cli, deduplication, encryption, system.
- [afio](https://www.automicvault.com/pkg/brew/afio/) - Shares av.db curated category or tags: archive, backup, cli, system.
- [bup](https://www.automicvault.com/pkg/brew/bup/) - Shares av.db curated category or tags: backup, cli, deduplication, system.
- [bupstash](https://www.automicvault.com/pkg/brew/bupstash/) - Shares av.db curated category or tags: backup, cli, deduplication, system.
- [burp](https://www.automicvault.com/pkg/brew/burp/) - Shares av.db curated category or tags: backup, cli, deduplication, system.
- [dar](https://www.automicvault.com/pkg/brew/dar/) - Shares av.db curated category or tags: backup, cli, compression, system.
- [dwarfs](https://www.automicvault.com/pkg/brew/dwarfs/) - Local package facts share a topical domain. Shared terms: cli, compression, deduplication, lz4, openssl.

## Combined YAML source

View the package source record on GitHub. [combined/borgbackup.yml](https://github.com/automic-vault/db/blob/main/combined/borgbackup.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
