O'Reilly logo

PostgreSQL High Performance Cookbook by Dinesh Kumar, Chitij Chauhan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Backup and recovery using Barman

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.

Getting ready

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 pg-clone.

How to do it...

The first part is to take backups, which will be done here. The following steps are all carried out on the backup server:

  1. First, we create a Barman backup with the following command:
            barman backup primary 
    
    
  2. In the next step, we examine the list ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required