2 .\" Title: barman\&.conf
3 .\" Author: [see the "AUTHORS" section]
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
10 .TH "BARMAN.CONF" "4" "08/13/2014" "\ \&" "\ \&"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 barman\&.conf \- configuration file for Barman (backup and recovery manager for PostgreSQL)
32 .SH "CONFIGURATION FILE LOCATIONS"
34 The system\-level Barman configuration file is located at
52 /etc/barman/barman\&.conf
58 and is overridden on a per\-user level by
64 $HOME/\&.barman\&.conf
69 .SH "CONFIGURATION FILE SYNTAX"
71 The Barman configuration file is a plain ini file\&. There is a general section called [barman] and a section [servername] for each server you want to backup\&. Rows starting with ; are comments\&.
72 .SH "CONFIGURATION FILE DIRECTORY"
74 Barman supports the inclusion of multiple configuration files, through the configuration_files_directory option\&. Included files must contain only server specifications, not global configurations\&. If the value of configuration_files_directory is a directory, Barman reads all files with \&.conf extension that exist in that folder\&. For example, if you set it to /etc/barman\&.d, you can specify your PostgreSQL servers placing each section in a separate \&.conf file inside the /etc/barman\&.d folder\&.
84 A human readable description of a server\&. Server\&.
89 Command used by Barman to login to the Postgres server via ssh\&. Server\&.
94 Connection string used by Barman to connect to the Postgres server\&. Server\&.
97 \fBbasebackups_directory\fR
99 Directory where base backups will be placed\&. Global/Server\&.
104 Directory which contains WAL files\&. Global/Server\&.
107 \fBincoming_wals_directory\fR
109 Directory where incoming WAL files are archived into\&. Global/Server\&.
114 Lock file for a backup in progress\&. Global/Server\&.
119 Location of Barman\(cqs log file\&. Global\&.
124 Level of logging (DEBUG, INFO, WARNING, ERROR, CRITICAL)\&. Global\&.
127 \fBcustom_compression_filter\fR
129 Compression algorithm applied to WAL files\&. Global/Server\&.
132 \fBcustom_decompression_filter\fR
134 Decompression algorithm applied to compressed WAL files; this must match the compression algorithm\&. Global/Server\&.
137 \fBpre_backup_script\fR
139 Hook script launched before a base backup\&. Global/Server\&.
142 \fBpost_backup_script\fR
144 Hook script launched after a base backup\&. Global/Server\&.
147 \fBpre_archive_script\fR
149 Hook script launched before a base backup\&. Global/Server\&.
152 \fBpost_archive_script\fR
154 Hook script launched after a base backup\&. Global/Server\&.
157 \fBminimum_redundancy\fR
159 Minimum number of backups to be retained\&. Default 0\&. Global/Server\&.
162 \fBretention_policy\fR
164 Policy for retention of periodical backups and archive logs\&. If left empty, retention policies are not enforced\&. For redundancy based retention policy use "REDUNDANCY i" (where i is an integer > 0 and defines the number of backups to retain)\&. For recovery window retention policy use "RECOVERY WINDOW OF i DAYS" or "RECOVERY WINDOW OF i WEEKS" or "RECOVERY WINDOW OF i MONTHS" where i is a positive integer representing, specifically, the number of days, weeks or months to retain your backups\&. For more detailed information, refer to the official documentation\&. Default value is empty\&. Global/Server\&.
167 \fBwal_retention_policy\fR
169 Policy for retention of archive logs (WAL files)\&. Currently only "MAIN" is available\&. Global/Server\&.
172 \fBretention_policy_mode\fR
174 Currently only "auto" is implemented\&. Global/Server\&.
177 \fBbandwidth_limit\fR
179 This option allows you to specify a maximum transfer rate in kilobytes per second\&. A value of zero specifies no limit (default)\&. Global/Server\&.
182 \fBtablespace_bandwidth_limit\fR
184 This option allows you to specify a maximum transfer rate in kilobytes per second, by specifying a comma separated list of tablespaces (pairs TBNAME:BWLIMIT)\&. A value of zero specifies no limit (default)\&. Global/Server\&.
187 \fBimmediate_checkpoint\fR
189 This option allows you to control the way PostgreSQL handles checkpoint at the start of the backup\&. If set to
191 (default), Postgres will wait for a checkpoint to happen before allowing the start of the backup\&. If set to
192 true, an immediate checkpoint is requested\&. Global/Server\&.
195 \fBnetwork_compression\fR
197 This option allows you to enable data compression for network transfers\&. If set to
199 (default), no compression is used\&. If set to
200 true, compression is enabled, reducing network usage\&. Global/Server\&.
205 This option allows you to enable to control the way PostgreSQL handles backups: If set to
209 executes backup operations using the standard exclusive backup approach (technically through pg_start_backup/pg_stop_backup)\&. If set to
210 concurrent_backup, Barman requires the
212 module to be installed on the PostgreSQL server (this allows to perform backup from a standby server)\&. Global/Server\&.
215 \fBlast_backup_maximum_age\fR
217 This option identifies a time frame that must contain the latest backup\&. If the latest backup is older than the time frame, barman check command will report an error to the user\&. If empty (default), latest backup is always considered valid\&. Syntax for this option is: "i (DAYS | WEEKS | MONTHS)" where i is a integer greater than zero, representing the number of days | weeks | months of the time frame\&. Global/Server\&.
220 \fBbasebackup_retry_times\fR
222 Number of retries of data copy during base backup after an error\&. Positive integer, default 0\&. Global/Server\&.
225 \fBbasebackup_retry_sleep\fR
227 Number of seconds of wait after a failed copy, before retrying Positive integer, default 30\&. Global/Server\&.
231 The script definition is passed to a shell and can return any exit code\&.
233 The shell environment will contain the following variables:
237 configuration file used by barman
242 error message, if any (only for the
260 Backup scripts specific variables:
264 backup destination directory
274 ID of the previous backup (if present)
287 Archive scripts specific variables:
296 full path of the WAL file
311 type of compression used for the WAL file
314 No check is performed on the exit code of the script\&. The result will be simply written in the log file\&.
317 Example of the configuration file:
325 barman_home = /var/lib/barman
331 log_file = /var/log/barman/barman\&.log
333 ; Default compression level
336 ; \*(Aqmain\*(Aq PostgreSQL Server configuration
338 ; Human readable description
339 description = "Main PostgreSQL Database"
342 ssh_command = ssh postgres@pg
344 ; PostgreSQL connection string
345 conninfo = host=pg user=postgres
347 ; Minimum number of required backups (redundancy)
348 minimum_redundancy = 1
350 ; Retention policy (based on redundancy)
351 retention_policy = REDUNDANCY 2
358 In alphabetical order:
368 Gabriele Bartolini <gabriele\&.bartolini@2ndquadrant\&.it> (core team, project leader)
379 Giuseppe Broccolo <giuseppe\&.broccolo@2ndquadrant\&.it> (core team, QA/testing)
390 Giulio Calacoci <giulio\&.calacoci@2ndquadrant\&.it> (core team, developer)
401 Francesco Canovai <francesco\&.canovai@2ndquadrant\&.it> (core team, QA/testing)
412 Marco Nenciarini <marco\&.nenciarini@2ndquadrant\&.it> (core team, team leader)
438 http://www\&.pgbarman\&.org/
450 http://docs\&.pgbarman\&.org/
454 Barman is the exclusive property of 2ndQuadrant Italia and its code is distributed under GNU General Public License v3\&.
456 Copyright \(co 2011\-2014 2ndQuadrant Italia (Devise\&.IT S\&.r\&.l\&.) \- http://www\&.2ndQuadrant\&.it/\&.