| 30 | [barman] |
| 31 | ; Main directory |
| 32 | barman_home = /var/lib/barman |
| 33 | |
| 34 | ; System user |
| 35 | barman_user = barman |
| 36 | |
| 37 | ; Log location |
| 38 | log_file = /var/log/barman/barman.log |
| 39 | |
| 40 | ; Default compression level: possible values are None (default), bzip2, gzip or custom |
| 41 | compression = gzip |
| 42 | |
| 43 | ; Incremental backup support: possible values are None (default), link or copy |
| 44 | ;reuse_backup = link |
| 45 | |
| 46 | ; Pre/post backup hook scripts |
| 47 | ;pre_backup_script = env | grep ^BARMAN |
| 48 | ;post_backup_script = env | grep ^BARMAN |
| 49 | |
| 50 | ; Pre/post archive hook scripts |
| 51 | ;pre_archive_script = env | grep ^BARMAN |
| 52 | ;post_archive_script = env | grep ^BARMAN |
| 53 | |
| 54 | ; Directory of configuration files. Place your sections in separate files with .conf extension |
| 55 | ; For example place the 'main' server section in /etc/barman.d/main.conf |
| 56 | configuration_files_directory = /etc/barman.d |
| 57 | |
| 58 | ; Minimum number of required backups (redundancy) - default 0 |
| 59 | minimum_redundancy = 1 |
| 60 | |
| 61 | ; Global retention policy (REDUNDANCY or RECOVERY WINDOW) - default empty |
| 62 | retention_policy = RECOVERY WINDOW OF 1 WEEKS |
| 63 | |
| 64 | ; Global bandwidth limit in KBPS - default 0 (meaning no limit) |
| 65 | ;bandwidth_limit = 4000 |
| 66 | |
| 67 | ; Immediate checkpoint for backup command - default false |
| 68 | ;immediate_checkpoint = false |
| 69 | |
| 70 | ; Enable network compression for data transfers - default false |
| 71 | ;network_compression = false |
| 72 | |
| 73 | ; Identify the standard behavior for backup operations: possible values are |
| 74 | ; exclusive_backup (default), concurrent_backup |
| 75 | ;backup_options = exclusive_backup |
| 76 | |
| 77 | ; Number of retries of data copy during base backup after an error - default 0 |
| 78 | ;basebackup_retry_times = 0 |
| 79 | |
| 80 | ; Number of seconds of wait after a failed copy, before retrying - default 30 |
| 81 | ;basebackup_retry_sleep = 30 |
| 82 | |
| 83 | ; Time frame that must contain the latest backup date. |
| 84 | ; If the latest backup is older than the time frame, barman check |
| 85 | ; command will report an error to the user. |
| 86 | ; If empty, the latest backup is always considered valid. |
| 87 | ; Syntax for this option is: "i (DAYS | WEEKS | MONTHS)" where i is an |
| 88 | ; integer > 0 which identifies the number of days | weeks | months of |
| 89 | ; validity of the latest backup for this check. Also known as 'smelly backup'. |
| 90 | last_backup_maximum_age = 1 WEEKS |
| 91 | |
| 92 | ;; ; 'main' PostgreSQL Server configuration |
| 93 | ;; [main] |
| 94 | ;; ; Human readable description |
| 95 | ;; description = "Main PostgreSQL Database" |
| 96 | ;; |
| 97 | ;; ; SSH options |
| 98 | ;; ssh_command = ssh postgres@pg |
| 99 | ;; |
| 100 | ;; ; PostgreSQL connection string |
| 101 | ;; conninfo = host=pg user=postgres |