This documentation is sourced from a third-party project and is not maintained by pgEdge.
Build
Installing pgBackRest from a package is preferable to building from source. See Installation for more information about packages.
When building from source it is best to use a build host rather than building on production. Many of the tools required for the build should generally not be installed in production. pgBackRest consists of a single executable so it is easy to copy to a new host once it is built.
Download version dev of to /build path
mkdir -p /build
wget -q -O -
https://github.com/pgbackrest/pgbackrest/archive/release/dev.tar.gz |
tar zx -C /build
Install build dependencies
apt-get install python3-distutils meson gcc libpq-dev libssl-dev libxml2-dev
pkg-config liblz4-dev libzstd-dev libbz2-dev libz-dev libyaml-dev libssh2-1-dev
yum install meson gcc postgresql17-devel openssl-devel
libxml2-devel lz4-devel libzstd-devel bzip2-devel libyaml-devel libssh2-devel
Configure and compile
meson setup /build/pgbackrest /build/pgbackrest-release-dev
ninja -C /build/pgbackrest