0% found this document useful (0 votes)
20 views2 pages

Streaming Server - Conf Template

This document provides a template configuration file for Barman, a backup and recovery manager for PostgreSQL, to backup a primary PostgreSQL database using only streaming replication. It specifies the PostgreSQL and streaming connection strings, backup settings using pg_basebackup, and WAL streaming settings using pg_receivexlog.

Uploaded by

Stephen Efange
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

Streaming Server - Conf Template

This document provides a template configuration file for Barman, a backup and recovery manager for PostgreSQL, to backup a primary PostgreSQL database using only streaming replication. It specifies the PostgreSQL and streaming connection strings, backup settings using pg_basebackup, and WAL streaming settings using pg_receivexlog.

Uploaded by

Stephen Efange
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

; Barman, Backup and Recovery Manager for PostgreSQL

; http://www.pgbarman.org/ - http://www.2ndQuadrant.com/

; Template configuration file for a server using

; only streaming replication protocol

[primary]

; Human readable description

description = "Primary PostgreSQL Database (Streaming-Only)"

; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; PostgreSQL connection string (mandatory)

; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

conninfo = host=mafiscotech01 user=barman dbname=postgres

; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; PostgreSQL streaming connection string

; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; To be used by pg_basebackup for backup and pg_receivexlog for WAL streaming

; NOTE: streaming_barman is a regular user with REPLICATION privilege

streaming_conninfo = host=mafiscotech01 user=streaming_barman

; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; Backup settings (via pg_basebackup)


; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

backup_method = postgres

;streaming_backup_name = barman_streaming_backup

; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; WAL streaming settings (via pg_receivexlog)

; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

streaming_archiver = on

slot_name = barman

;streaming_archiver_name = barman_receive_wal

;streaming_archiver_batch_size = 50

; PATH setting for this server

;path_prefix = "/usr/pgsql-9.6/bin"

You might also like