# Install pgbackrest with Homebrew, apk, apt, Nix, pacman, zypper

Reliable PostgreSQL Backup & Restore. Version 2.58.0 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:pgbackrest
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install pgbackrest
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add pgbackrest
```

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

- Debian apt (92%):

```sh
sudo apt install pgbackrest
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#pgbackrest
```

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

- pacman (92%):

```sh
sudo pacman -S pgbackrest
```

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

- zypper (92%):

```sh
sudo zypper install pgbackrest
```

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

## Package facts

- **Package key:** brew:pgbackrest
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/pgbackrest>
- **Version:** 2.58.0
- **Source summary:** Reliable PostgreSQL Backup & Restore
- **Homepage:** <https://pgbackrest.org>
- **Repository:** <https://github.com/pgbackrest/pgbackrest>
- **Upstream docs:** <https://pgbackrest.org/command.html>
- **License:** MIT
- **Source archive:** <https://github.com/pgbackrest/pgbackrest/archive/refs/tags/release/2.58.0.tar.gz>
- **Last updated:** 2026-06-22T14:05:52-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- pgbackrest (cli)
- pgbackrest (alias)

## Dependencies

- libpq
- libssh2
- libyaml
- lz4
- openssl@3
- zstd

## Build dependencies

- cmake
- meson
- ninja
- pkgconf

## Uses from macOS

- bzip2
- libxml2

## 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: 2.58.0
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/pgbackrest/pgbackrest
- Upstream latest detected: release/2.58.0 (current)

## 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: /etc/pgbackrest/pgbackrest.conf, /etc/pgbackrest.conf
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** pgbackrest
- **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 - pgbackrest - 2.55.1-1: normalized package name match | Debian stable package indexes: pgbackrest from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Reliable PostgreSQL Backup & Restore | https://www.pgbackrest.org/
- Debian apt - pgbackrest-doc - 2.55.1-1: normalized package name match | Debian stable package indexes: pgbackrest-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation package for pgbackrest | https://www.pgbackrest.org/
- Nix - pgbackrest: normalized package name match | nixpkgs package indexes: pkgs/by-name/pg/pgbackrest/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - pgbackrest - 2.50-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: pgbackrest from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Reliable PostgreSQL Backup & Restore | https://www.pgbackrest.org/
- Ubuntu apt - pgbackrest-doc - 2.50-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: pgbackrest-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Documentation package for pgbackrest | https://www.pgbackrest.org/
- apk - pgbackrest - 2.58.0-r0: normalized package name match | Alpine Linux edge package indexes: pgbackrest from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Reliable PostgreSQL backup & restore | https://www.pgbackrest.org/
- pacman - pgbackrest - 2.58.0-1: normalized package name match | Arch Linux sync databases: pgbackrest from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Reliable PostgreSQL backup and restore | https://github.com/pgbackrest/pgbackrest
- zypper - pgbackrest - 2.58.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: pgbackrest from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Reliable PostgreSQL Backup & Restore | https://www.pgbackrest.org


## 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.
- [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.
- [libpq](https://www.automicvault.com/pkg/brew/libpq/) - Runtime dependency declared by Homebrew.
- [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.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [meson](https://www.automicvault.com/pkg/brew/meson/) - Build dependency declared by Homebrew.
- [ninja](https://www.automicvault.com/pkg/brew/ninja/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [pg-schema-diff](https://www.automicvault.com/pkg/brew/pg-schema-diff/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [pg_partman](https://www.automicvault.com/pkg/brew/pg-partman/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [pg_top](https://www.automicvault.com/pkg/brew/pg-top/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [pgbadger](https://www.automicvault.com/pkg/brew/pgbadger/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [pgbouncer](https://www.automicvault.com/pkg/brew/pgbouncer/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [pgcli](https://www.automicvault.com/pkg/brew/pgcli/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [pgcopydb](https://www.automicvault.com/pkg/brew/pgcopydb/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [dblab](https://www.automicvault.com/pkg/brew/dblab/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.

## Combined YAML source

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


## Sources

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