Zmiany pomiędzy wersją 4 and wersją 5 dla DeployerGuide/Backup/Barman

Pokaż
Ignoruj:
Data i czas:
05/09/15 01:49:23 (10 years temu)
Autor:
MK (IP: 31.61.136.201)
Komentarz:

--

Legend:

Bez zmian
Dodane
Usunięte
Zmienione
  • DeployerGuide/Backup/Barman

    v4 v5  
    1515su -c "ssh-keygen" barman 
    1616cat /var/lib/barman/.ssh/id_rsa.pub >> /var/lib/postgresql/.ssh/authorized_keys 
     17chown postgres:postgres /var/lib/postgresql/.ssh/authorized_keys 
     18 
    1719# sprawdzamy 
    1820su - barman 
     
    2628/etc/barman.conf 
    2729{{{ 
     30[barman] 
     31; Main directory 
     32barman_home = /var/lib/barman 
     33 
     34; System user 
     35barman_user = barman 
     36 
     37; Log location 
     38log_file = /var/log/barman/barman.log 
     39 
     40; Default compression level: possible values are None (default), bzip2, gzip or custom 
     41compression = 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 
     56configuration_files_directory = /etc/barman.d 
     57 
     58; Minimum number of required backups (redundancy) - default 0 
     59minimum_redundancy = 1 
     60 
     61; Global retention policy (REDUNDANCY or RECOVERY WINDOW) - default empty 
     62retention_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'. 
     90last_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 
    28102 
    29103}}} 
     
    31105/etc/barman.d/edokumenty.conf 
    32106{{{ 
     107[edokumenty] 
     108;;Human readable description 
     109description =  "eDokumenty PostgreSQL Database" 
     110 
     111;; 
     112;; ; SSH options 
     113ssh_command = ssh postgres@127.0.0.1 -p 5927 
     114 
     115;; 
     116;; ; PostgreSQL connection string 
     117conninfo = host=localhost user=postgres 
    33118 
    34119}}}