Configuring a Barman Server¶
You can configure and edit your Barman server using:
PEM web client
pemworkercommand line
Using PEM web client¶
Configure
You can use the Create–BARMAN server dialog to register an existing Barman server with the PEM server. To access the dialog, right-click on the BARMAN Servers node and select Create-BARMAN Server.
Create-BARMAN server dialog - General tab¶
Use the fields on the General tab to describe the general properties of the Barman server:
Use the
Namefield to specify a user-friendly name for the server. The name identifies the server in the browser tree.Use the
URLfield to specify the URL of the host where Barman is installed.Use the
Teamfield to specify a PostgreSQL role name. Only PEM users who are members of this role, who created the server initially, or have superuser privileges on the PEM server will see this server when they log on to PEM. If this field is left blank, all PEM users see the server.
Create-BARMAN server dialog - PEM Agent tab¶
Use the fields on the PEM Agent tab to specify connection details for the PEM Agent:
Use the
Bound Agentfield to select the agent that you want to configure as a Barman server. Only those PEM agents that are supported for Barman are listed in the drop-down list.Use the
Probe Frequencyfield to specify the number of seconds to execute the probes with the specified interval.Use the
Hearbeatfield to specify the number of seconds interval to check the availability of PEM agent.
..note:: After registering the Barman server you need to restart the PEM agent.
Editing
To edit your Barman server, select your Barman server from the browser tree, right click and select Properties.
BARMAN server properties - General tab¶
Use the fields on the General tab to modify the
Name,URLandTeam. Only the owner of the Barman server can modify the fields on General tab.
BARMAN server properties - PEM agent tab¶
Use the fields on the PEM Agent tab to modify the
Bound Agent,Probe Frequency, andHeartbeat. Only the owner of the Barman server can modify the fields on PEM Agent tab.
BARMAN server properties - Information tab¶
Use the fields on Information tab to view the detailed information about your Barman server. This tab gets populated whenever the Barman related probes are executed. You cannot modify any of the fields on the Information tab.
BARMAN server properties - Configuration tab¶
Use the fields on Configuration tab to view the configuration settings of your Barman server. This tab gets populated whenever the Barman related probes are executed. You cannot modify any of the fields on the Configuration tab.
Note
After registering the Barman server you need to restart the PEM agent.
Using pemworker command line¶
You can configure Barman server using pemworker command line options.
1asheshvashi@pem:~/PEM/agent$ ./pemworker --update-barman --help
2./pemworker --update-barman [barman-update-options]
3
4barman-update-options:
5 --id <barman-id> (ID for the existing BARMAN API 'pg-backup-api')
6 --api-url <url> (URL of the BARMAN API 'pg-backup-api')
7 --probe-execution-frequency <interval> (Default: 30, Probe the BARMAN API 'pg-backup-api' at regular interval 'in seconds' and fetch the metrics.)
8 --heartbeat-interval <interval> (Default: 10, Ping the BARMAN API 'pg-backup-api' 'status' API at a regular interval 'in seconds' for checking its availability.)
9 --ssl-crt <certificate_file> (SSL certificate file for the BARMAN API.)
10 --ssl-key <key_file> (Private SSL key for the BARMAN API.)
11 --ssl-ca-crt <ca_file> (CA certificate to verify peer against the BARMAN API.)
12 --config-file/-c <config_file> (Path to the agent configuration file.)
13
14asheshvashi@pem:~/PEM/agent$ ./pemworker --unregister-barman --help
15./pemworker --unregister-barman [barman-unregistration-options]
16
17barman-unregistration-options:
18 --id <barman-id> (ID for the existing BARMAN API, registered with the PEM Server.'pg-backup-api')
19 --config-file/-c <config_file> (Path to the agent configuration file.)
20
21asheshvashi@pem:~/PEM/agent$ ./pemworker --register-barman --help
22./pemworker --register-barman [barman-registration-options]
23
24barman-registration-options:
25 --api-url <url> (URL of the BARMAN API 'pg-backup-api')
26 --description <name> (Description to show on the UI 'User interface' for the BARMAN API.)
27 --probe-execution-frequency <interval> (Default: 30, Probe the BARMAN API 'pg-backup-api' at regular interval 'in seconds' and fetch the metrics.)
28 --heartbeat-interval <interval> (Default: 10, Ping the BARMAN API 'pg-backup-api' 'status' API at a regular interval 'in seconds' for checking its availability.)
29 --ssl-crt <certificate_file> (SSL certificate file for the BARMAN API.)
30 --ssl-key <key_file> (Private SSL key for the BARMAN API.)
31 --ssl-ca-crt <ca_file> (CA certificate to verify peer against the BARMAN API.)
32 --team <database-role> (Specify the name of the database group role, on the PEM backend database server, that should have access to this BARMAN API Server.)
33 --owner <database-user> (Specify the name of the database user, on the PEM backend database server, who will own the BARMAN API Server.)
34 --config-file/-c <config_file> (Path to the agent configuration file.)
Note
After registering the Barman server you need to restart the PEM agent.