# Install barman with Homebrew, apk, apt, dnf, MacPorts, Nix

Backup and Recovery Manager for PostgreSQL. Version 3.19.1 via Homebrew; verified 2026-05-27.

## Install

```sh
sudo av install brew:barman
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install barman
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install barman
```

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

### Linux

- apk (92%):

```sh
sudo apk add barman
```

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

- Debian apt (92%):

```sh
sudo apt install barman
```

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

- dnf (92%):

```sh
sudo dnf install barman
```

  Evidence: Fedora Rawhide package metadata: barman 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#barman
```

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

## Package facts

- **Package key:** brew:barman
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/barman>
- **Version:** 3.19.1
- **Source summary:** Backup and Recovery Manager for PostgreSQL
- **Homepage:** <https://www.pgbarman.org/>
- **Repository:** <https://github.com/EnterpriseDB/barman>
- **Upstream docs:** <https://docs.pgbarman.org/release/3.12.0/user_guide/configuration.html>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/EnterpriseDB/barman/releases/download/release%2F3.19.1/barman-3.19.1.tar.gz>
- **Last updated:** 2026-05-27T15:28:03Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- barman (cli)
- barman-cloud-backup (cli)
- barman-cloud-backup-delete (cli)
- barman-cloud-backup-keep (cli)
- barman-cloud-backup-list (cli)
- barman-cloud-backup-show (cli)
- barman-cloud-check-wal-archive (cli)
- barman-cloud-restore (cli)
- barman-cloud-wal-archive (cli)
- barman-cloud-wal-restore (cli)
- barman-wal-archive (cli)
- barman-wal-restore (cli)
- barman (alias)
- barman-cloud-backup (alias)
- barman-cloud-backup-delete (alias)
- barman-cloud-backup-keep (alias)
- barman-cloud-backup-list (alias)
- barman-cloud-backup-show (alias)
- barman-cloud-check-wal-archive (alias)
- barman-cloud-restore (alias)
- barman-cloud-wal-archive (alias)
- barman-cloud-wal-restore (alias)
- barman-wal-archive (alias)
- barman-wal-restore (alias)

## Dependencies

- libpq
- openssl@3
- python@3.14

## 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-08
- Package-manager version: 3.19.1
- Package-manager updated: 2026-05-27
- Local data: ok
- Upstream repository: https://github.com/EnterpriseDB/barman
- info: No cached GitHub release or tag data was available.
## Project history and usage

Barman is EnterpriseDB's open-source Backup and Recovery Manager for PostgreSQL, a Python administration tool for physical backups, WAL archiving, point-in-time recovery, and cloud backup workflows.

### Project history

The upstream README identifies Barman as a disaster-recovery tool for PostgreSQL servers, maintained by EnterpriseDB under GPL-3.0-or-later. It also records that the GitHub repository became the new home starting with version 2.13, replacing the legacy SourceForge repository.

Barman's documentation presents it as a tool for managing backups of multiple PostgreSQL servers in business-critical environments. Over time it has added streaming backup modes, WAL archiving helpers, cloud commands, snapshot support, export/import workflows, and restore features.

### Adoption history

Barman is adopted by PostgreSQL operators who need backup catalogs, retention policies, WAL management, and recoverable physical backups outside the database server itself. Its presence in Linux distributions, Homebrew, MacPorts, Nix, PyPI-linked docs, and EnterpriseDB documentation reflects use by both community and commercial PostgreSQL users.

### How it is used

A typical Barman setup defines global and per-server configuration in barman.conf or barman.d snippets, grants PostgreSQL access using credentials such as .pgpass, archives WAL files with barman-wal-archive or streaming, and restores backups through barman restore or cloud restore commands.

### Why package nerds care

Barman is package-nerd significant because it bridges PostgreSQL internals and system packaging: executable families for local and cloud backup, configuration directories, Python dependencies, PostgreSQL client tooling, and credential conventions all have to line up for reliable recovery.

### Timeline

- 2011: EnterpriseDB copyright history begins for Barman.
- Version 2.13: GitHub becomes the new upstream home, replacing the legacy SourceForge repository.
- 2024: Barman 3.12.0 continues the 3.x line with documented configuration and recovery workflows.
- 2026: Barman 3.19 adds and fixes cloud backup restore, cloud WAL restore, export/import, and parallel WAL-related behavior.

### Related projects

- Barman works with PostgreSQL server tools and concepts such as pg_basebackup, pg_receivewal, WAL archiving, archive_command, restore_command, rsync, SSH, object storage, and .pgpass credentials.

### Sources

- <https://docs.pgbarman.org/release/3.12.0/user_guide/configuration.html>
- <https://docs.pgbarman.org/release/3.19.1/user_guide/>
- <https://github.com/EnterpriseDB/barman/blob/master/README.rst>
- <https://github.com/EnterpriseDB/barman/blob/master/RELNOTES.md>
- source_facts.package-manager


## Security Notes

No matching local secret-handling manifest was found for barman. Nucleus package metadata is still published here so future coverage has a stable package URL.



## 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: /etc/barman.conf, ~/.barman.conf, /etc/barman.d/*.conf

## Credential files

- Unix: ~/.pgpass
## Source Database Details

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

## Other Package-Manager Records

- Debian apt - barman - 3.13.3-1: normalized package name match | Debian stable package indexes: barman from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Backup and Recovery Manager for PostgreSQL | https://www.pgbarman.org
- Debian apt - barman-cli - 3.13.3-1: normalized package name match | Debian stable package indexes: barman-cli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Client utilities for the integration of Barman in PostgreSQL clusters | https://www.pgbarman.org
- Debian apt - barman-cli-cloud - 3.13.3-1: normalized package name match | Debian stable package indexes: barman-cli-cloud from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Cloud client utilities for the integration of Barman in PostgreSQL clusters | https://www.pgbarman.org
- Debian apt - python3-barman - 3.13.3-1: normalized package name match | Debian stable package indexes: python3-barman from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Backup and Recovery Manager for PostgreSQL - Python modules | https://www.pgbarman.org
- Nix - barman: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/barman/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - barman - 3.10.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: barman from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Backup and Recovery Manager for PostgreSQL | https://www.pgbarman.org
- Ubuntu apt - barman-cli - 3.10.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: barman-cli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Client utilities for the integration of Barman in PostgreSQL clusters | https://www.pgbarman.org
- Ubuntu apt - barman-cli-cloud - 3.10.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: barman-cli-cloud from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Cloud client utilities for the integration of Barman in PostgreSQL clusters | https://www.pgbarman.org
- Ubuntu apt - python3-barman - 3.10.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-barman from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Backup and Recovery Manager for PostgreSQL - Python modules | https://www.pgbarman.org
- apk - barman - 3.19.0-r0: normalized package name match | Alpine Linux edge package indexes: barman from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Backup and recovery manager for PostgreSQL | https://pgbarman.org
- apk - barman-bash-completion - 3.19.0-r0: normalized package name match | Alpine Linux edge package indexes: barman-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for barman | https://pgbarman.org
- apk - barman-doc - 3.19.0-r0: normalized package name match | Alpine Linux edge package indexes: barman-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Backup and recovery manager for PostgreSQL (documentation) | https://pgbarman.org
- apk - barman-pyc - 3.19.0-r0: normalized package name match | Alpine Linux edge package indexes: barman-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for barman | https://pgbarman.org
- dnf - barman - 3.18.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: barman from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Backup and Recovery Manager for PostgreSQL | http://www.pgbarman.org/
- dnf - barman-cli - 3.18.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: barman-cli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Client Utilities for Barman | http://www.pgbarman.org/
- dnf - python3-barman - 3.18.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: python3-barman from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Shared libraries for Barman | http://www.pgbarman.org/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing 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.
- [libpq](https://www.automicvault.com/pkg/brew/libpq/) - 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.
- [greenmask](https://www.automicvault.com/pkg/brew/greenmask/) - Shares av.db curated category or tags: backup, cli, data, postgresql.
- [apgdiff](https://www.automicvault.com/pkg/brew/apgdiff/) - Shares av.db curated category or tags: cli, data, postgresql.
- [automysqlbackup](https://www.automicvault.com/pkg/brew/automysqlbackup/) - Shares av.db curated category or tags: backup, cli, data.
- [check_postgres](https://www.automicvault.com/pkg/brew/check-postgres/) - Shares av.db curated category or tags: cli, data, postgresql.
- [dexter](https://www.automicvault.com/pkg/brew/dexter/) - Shares av.db curated category or tags: cli, data, postgresql.
- [doltgres](https://www.automicvault.com/pkg/brew/doltgres/) - Shares av.db curated category or tags: cli, data, postgresql.
- [dumpling](https://www.automicvault.com/pkg/brew/dumpling/) - Shares av.db curated category or tags: backup, cli, data.
- [ephemeralpg](https://www.automicvault.com/pkg/brew/ephemeralpg/) - Shares av.db curated category or tags: cli, data, postgresql.
- [mydumper](https://www.automicvault.com/pkg/brew/mydumper/) - Local package facts share a topical domain. Shared terms: backup, cli, data, openssl, openssl-3.
- [stolon](https://www.automicvault.com/pkg/brew/stolon/) - Local package facts share a topical domain. Shared terms: cli, cloud, data, libpq, manager.
- [adios2](https://www.automicvault.com/pkg/brew/adios2/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, data, openssl, openssl-3, python.

## Combined YAML source

View the package source record on GitHub. [combined/barman.yml](https://github.com/automic-vault/db/blob/main/combined/barman.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
