4.3. Installation and Configuration of Backup and Restore Tools #
PPEM performs backup using pg_probackup manually installed on all servers. The version of pg_probackup must correspond to the version of DBMS instances. The backup features available in PPEM depend on the pg_probackup edition.
For more information about installation, refer to the official Postgres Pro documentation on pg_probackup. It is also recommended to view the example of the pg_probackup installation using APT (for Debian-based operating systems).
After pg_probackup is installed, the agent automatically detects it and notifies the manager. The server is now ready for backup operations.
You must manually configure the installed pg_probackup. The configuration process includes the following steps on all servers:
Create dedicated DBMS users and grant them backup privileges using pg_probackup.
For more information, refer to the official Postgres Pro documentation on configuring the database cluster.
Configure a STREAM backup.
For more information, refer to the official Postgres Pro documentation on setting up STREAM backups.
To provide point-in-time recovery (PITR), configure continuous WAL archiving in one of the following ways:
When configuring an instance on a server as described in the official Postgres Pro documentation.
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.