# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix 安装 barman

查看 barman 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install barman
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install barman
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: Fedora Rawhide package metadata: barman from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#barman
```

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

## 软件包事实

- **软件包键:** brew:barman
- **软件包管理器:** Homebrew
- **版本:** 3.19.1
- **来源摘要:** Backup and Recovery Manager for PostgreSQL
- **主页:** <https://www.pgbarman.org/>
- **仓库:** <https://github.com/EnterpriseDB/barman>
- **最后更新:** 2026-05-27T15:28:03Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- barman (别名)
- barman-cloud-backup (别名)
- barman-cloud-backup-delete (别名)
- barman-cloud-backup-keep (别名)
- barman-cloud-backup-list (别名)
- barman-cloud-backup-show (别名)
- barman-cloud-check-wal-archive (别名)
- barman-cloud-restore (别名)
- barman-cloud-wal-archive (别名)
- barman-cloud-wal-restore (别名)
- barman-wal-archive (别名)
- barman-wal-restore (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.19.1
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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


## 安全说明

没有找到 barman 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 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
## 其他软件包管理器记录

- 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.1-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.1-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.1-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.1-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-3.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Backup and Recovery Manager for PostgreSQL | http://www.pgbarman.org/
- dnf - barman-cli - 3.18.0-3.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Client Utilities for Barman | http://www.pgbarman.org/
- dnf - python3-barman - 3.18.0-3.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Shared libraries for Barman | http://www.pgbarman.org/


## Combined YAML source

View the package source record on GitHub. [combined/barman.yml](https://github.com/mxcl/pkgdb/blob/main/combined/barman.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
