Skip to content

Instantly share code, notes, and snippets.

@perigee
Created September 2, 2015 21:45
Show Gist options
  • Save perigee/ad1e6b142e7178420ec2 to your computer and use it in GitHub Desktop.
Save perigee/ad1e6b142e7178420ec2 to your computer and use it in GitHub Desktop.
barman original configuration file
; Barman, Backup and Recovery Manager for PostgreSQL
; http://www.pgbarman.org/ - http://www.2ndQuadrant.com/
;
; Main configuration file
[barman]
; Main directory
barman_home = /var/lib/barman
; System user
barman_user = barman
; Log location
log_file = /var/log/barman/barman.log
; Default compression level: possible values are None (default), bzip2, gzip or custom
;compression = gzip
; Pre/post backup hook scripts
;pre_backup_script = env | grep ^BARMAN
;post_backup_script = env | grep ^BARMAN
; Pre/post archive hook scripts
;pre_archive_script = env | grep ^BARMAN
;post_archive_script = env | grep ^BARMAN
; Directory of configuration files. Place your sections in separate files with .conf extension
; For example place the 'main' server section in /etc/barman.d/main.conf
;configuration_files_directory = /etc/barman.d
; Minimum number of required backups (redundancy)
;minimum_redundancy = 0
; Global retention policy (REDUNDANCY or RECOVERY WINDOW) - default empty
;retention_policy =
; Global bandwidth limit in KBPS - default 0 (meaning no limit)
;bandwidth_limit = 4000
; Immediate checkpoint for backup command
;immediate_checkpoint = false
; Enable network compression for data transfers
;network_compression = false
;; ; 'main' PostgreSQL Server configuration
;; [main]
;; ; Human readable description
;; description = "Main PostgreSQL Database"
;;
;; ; SSH options
;; ssh_command = ssh postgres@pg
;;
;; ; PostgreSQL connection string
;; conninfo = host=pg user=postgres
;;
;; ; Minimum number of required backups (redundancy)
;; ; minimum_redundancy = 1
;;
;; ; Examples of retention policies
;;
;; ; Retention policy (disabled)
;; ; retention_policy =
;; ; Retention policy (based on redundancy)
;; ; retention_policy = REDUNDANCY 2
;; ; Retention policy (based on recovery window)
;; ; retention_policy = RECOVERY WINDOW OF 4 WEEKS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment