In this recipe, we shall see the steps involved in installing pgBackRest on Ubuntu or Debian operating systems.
Getting ready
The PGDG repository for a specific Ubuntu or Debian release should be installed on the operating system. It requires internet connectivity to download the repository and the packages. Otherwise, the pgbackrest packages need to be downloaded to any other server that has internet connectivity and then copied to the database server.
How to do it
The following are the detailed steps involved in installing pgbackrest on Debian/Ubuntu operating systems:
- Import the PGDG repository to your database server. The steps for different releases of Debian and Ubuntu are listed here:
For Debian Buster (10.x):
# echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" >> /etc/apt/sources.list.d/pgdg.list
For Debian Stretch (9.x):
# echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main"...