How it works...

One of the first things we may need to do upon logging in to a new Barman server is to figure out what it's backing up. We could check the /etc/barman.d folder for a list of files, but this isn't always the best approach. Why not just ask Barman itself with the list-server parameter? We created another server on our test system and can see them both listed here:

Now that we have a list of servers, we can dig into each individually if necessary. Barman also provides an all keyword, which substitutes for a server name in any command that expects this information. Hence, we could either list all backups that exist for one server ...

Get PostgreSQL 12 High Availability Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.