1 ; Barman, Backup and Recovery Manager for PostgreSQL
2 ; http://www.pgbarman.org/ - http://www.2ndQuadrant.com/
4 ; Main configuration file
6 ; Put individual PostgreSQL Server configuration files to
7 ; /etc/barman.d directory.
8 ; Examples can be found in /usr/share/barman directory.
12 barman_user = postgres
14 ; Directory of configuration files. Place your sections in separate files with .conf extension
15 ; For example place the 'main' server section in /etc/barman.d/main.conf
16 configuration_files_directory = /etc/barman.d
19 barman_home = /var/barman/backup
21 ; Locks directory - default: %(barman_home)s
22 ;barman_lock_directory = /var/barman/lock
25 log_file = /var/log/barman/barman.log
27 ; Log level (see https://docs.python.org/3/library/logging.html#levels)
30 ; Default compression level: possible values are None (default), bzip2, gzip, pigz, pygzip or pybzip2
33 ; Pre/post backup hook scripts
34 ;pre_backup_script = env | grep ^BARMAN
35 ;pre_backup_retry_script = env | grep ^BARMAN
36 ;post_backup_retry_script = env | grep ^BARMAN
37 ;post_backup_script = env | grep ^BARMAN
39 ; Pre/post archive hook scripts
40 ;pre_archive_script = env | grep ^BARMAN
41 ;pre_archive_retry_script = env | grep ^BARMAN
42 ;post_archive_retry_script = env | grep ^BARMAN
43 ;post_archive_script = env | grep ^BARMAN
45 ; Pre/post delete scripts
46 ;pre_delete_script = env | grep ^BARMAN
47 ;pre_delete_retry_script = env | grep ^BARMAN
48 ;post_delete_retry_script = env | grep ^BARMAN
49 ;post_delete_script = env | grep ^BARMAN
51 ; Pre/post wal delete scripts
52 ;pre_wal_delete_script = env | grep ^BARMAN
53 ;pre_wal_delete_retry_script = env | grep ^BARMAN
54 ;post_wal_delete_retry_script = env | grep ^BARMAN
55 ;post_wal_delete_script = env | grep ^BARMAN
57 ; Global bandwidth limit in KBPS - default 0 (meaning no limit)
58 ;bandwidth_limit = 4000
60 ; Number of parallel jobs for backup and recovery via rsync (default 1)
63 ; Immediate checkpoint for backup command - default false
64 ;immediate_checkpoint = false
66 ; Enable network compression for data transfers - default false
67 ;network_compression = false
69 ; Number of retries of data copy during base backup after an error - default 0
70 ;basebackup_retry_times = 0
72 ; Number of seconds of wait after a failed copy, before retrying - default 30
73 ;basebackup_retry_sleep = 30
75 ; Maximum execution time, in seconds, per server
76 ; for a barman check command - default 30
79 ; Time frame that must contain the latest backup date.
80 ; If the latest backup is older than the time frame, barman check
81 ; command will report an error to the user.
82 ; If empty, the latest backup is always considered valid.
83 ; Syntax for this option is: "i (DAYS | WEEKS | MONTHS)" where i is an
84 ; integer > 0 which identifies the number of days | weeks | months of
85 ; validity of the latest backup for this check. Also known as 'smelly backup'.
86 ;last_backup_maximum_age =
88 ; Minimum number of required backups (redundancy)
89 ;minimum_redundancy = 1
91 ; Global retention policy (REDUNDANCY or RECOVERY WINDOW)
92 ; Examples of retention policies
93 ; Retention policy (disabled, default)
95 ; Retention policy (based on redundancy)
96 ;retention_policy = REDUNDANCY 2
97 ; Retention policy (based on recovery window)
98 ;retention_policy = RECOVERY WINDOW OF 4 WEEKS