|
| 1 | +; Barman, Backup and Recovery Manager for PostgreSQL |
| 2 | +; http://www.pgbarman.org/ - http://www.2ndQuadrant.com/ |
| 3 | +; |
| 4 | +; Main configuration file |
| 5 | + |
| 6 | +[barman] |
| 7 | +; System user |
| 8 | +barman_user = barman |
| 9 | + |
| 10 | +; Directory of configuration files. Place your sections in separate files with .conf extension |
| 11 | +; For example place the 'main' server section in /etc/barman.d/main.conf |
| 12 | +configuration_files_directory = /etc/barman.d |
| 13 | + |
| 14 | +; Main directory |
| 15 | +barman_home = /var/lib/barman |
| 16 | + |
| 17 | +; Locks directory - default: %(barman_home)s |
| 18 | +;barman_lock_directory = /var/run/barman |
| 19 | + |
| 20 | +; Log location |
| 21 | +log_file = /var/log/barman/barman.log |
| 22 | + |
| 23 | +; Log level (see https://docs.python.org/3/library/logging.html#levels) |
| 24 | +log_level = INFO |
| 25 | + |
| 26 | +; Default compression level: possible values are None (default), bzip2, gzip, pigz, pygzip or pybzip2 |
| 27 | +;compression = gzip |
| 28 | + |
| 29 | +; Pre/post backup hook scripts |
| 30 | +;pre_backup_script = env | grep ^BARMAN |
| 31 | +;pre_backup_retry_script = env | grep ^BARMAN |
| 32 | +;post_backup_retry_script = env | grep ^BARMAN |
| 33 | +;post_backup_script = env | grep ^BARMAN |
| 34 | + |
| 35 | +; Pre/post archive hook scripts |
| 36 | +;pre_archive_script = env | grep ^BARMAN |
| 37 | +;pre_archive_retry_script = env | grep ^BARMAN |
| 38 | +;post_archive_retry_script = env | grep ^BARMAN |
| 39 | +;post_archive_script = env | grep ^BARMAN |
| 40 | + |
| 41 | +; Global retention policy (REDUNDANCY or RECOVERY WINDOW) - default empty |
| 42 | +;retention_policy = |
| 43 | + |
| 44 | +; Global bandwidth limit in KBPS - default 0 (meaning no limit) |
| 45 | +;bandwidth_limit = 4000 |
| 46 | + |
| 47 | +; Immediate checkpoint for backup command - default false |
| 48 | +;immediate_checkpoint = false |
| 49 | + |
| 50 | +; Enable network compression for data transfers - default false |
| 51 | +;network_compression = false |
| 52 | + |
| 53 | +; Number of retries of data copy during base backup after an error - default 0 |
| 54 | +;basebackup_retry_times = 0 |
| 55 | + |
| 56 | +; Number of seconds of wait after a failed copy, before retrying - default 30 |
| 57 | +;basebackup_retry_sleep = 30 |
| 58 | + |
| 59 | +; Maximum execution time, in seconds, per server |
| 60 | +; for a barman check command - default 30 |
| 61 | +;check_timeout = 30 |
| 62 | + |
| 63 | +; Time frame that must contain the latest backup date. |
| 64 | +; If the latest backup is older than the time frame, barman check |
| 65 | +; command will report an error to the user. |
| 66 | +; If empty, the latest backup is always considered valid. |
| 67 | +; Syntax for this option is: "i (DAYS | WEEKS | MONTHS)" where i is an |
| 68 | +; integer > 0 which identifies the number of days | weeks | months of |
| 69 | +; validity of the latest backup for this check. Also known as 'smelly backup'. |
| 70 | +;last_backup_maximum_age = |
| 71 | + |
| 72 | +; Minimum number of required backups (redundancy) |
| 73 | +;minimum_redundancy = 1 |
| 74 | + |
| 75 | +; Examples of retention policies |
| 76 | +; Retention policy (disabled) |
| 77 | +;retention_policy = |
| 78 | +; Retention policy (based on redundancy) |
| 79 | +;retention_policy = REDUNDANCY 2 |
| 80 | +; Retention policy (based on recovery window) |
| 81 | +;retention_policy = RECOVERY WINDOW OF 4 WEEKS |
0 commit comments