22.1. Example of the pg_probackup Installation Using APT #
This section includes an example of pg_probackup installation on a server with a DBMS instance and PPEM.
The version of pg_probackup must correspond to the version of the instance. Version 16 is used in this example.
The installation process includes the following steps:
Start a new session under the superuser:
$ sudo -s
To add the GPG key for the pg_probackup repository, install additional utilities:
# apt install gpg wget # wget -qO - https://repo.postgrespro.ru/pg_probackup/keys/GPG-KEY-PG-PROBACKUP | \ # tee /etc/apt/trusted.gpg.d/pg_probackup.asc
Configure the package repository:
# . /etc/os-release # echo "deb [arch=amd64] https://repo.postgrespro.ru/pg_probackup/deb $VERSION_CODENAME main-$VERSION_CODENAME " | tee /etc/apt/sources.list.d/pg_probackup.list
To make pg_probackup packages available for viewing and installing, update the package manager metadata:
# apt update # apt search pg_probackup
Install pg_probackup:
# apt install pg-probackup-16
After pg_probackup is installed, the agent automatically detects it and notifies the manager. The server is now ready for backup operations.