Now that we have installed and configured Barman it is now time to use Barman for its actual purpose, that is, taking backups with Barman and recovering PostgreSQL using the backups taken with Barman. This section is divided into two areas, first taking the backup and then testing its recovery.
All the steps in this recipe require Barman to be installed on the backup server. For restoring data we are going to use a new server named
The first part is to take backups, which will be done here. The following steps are all carried out on the backup server:
barman backup primary