@@ -405,24 +405,32 @@ wal_g_patroni_cluster_bootstrap_command: "wal-g backup-fetch {{ postgresql_data_
405
405
# pgBackRest
406
406
pgbackrest_install : false # or 'true'
407
407
pgbackrest_install_from_pgdg_repo : true # or 'false'
408
- pgbackrest_stanza : " stanza_name " # specify your --stanza
408
+ pgbackrest_stanza : " {{ patroni_cluster_name }} " # specify your --stanza
409
409
pgbackrest_repo_type : " posix" # or "s3", "gcs", "azure"
410
- pgbackrest_repo_host : " 10.128.64.50 " # dedicated repository host (if repo_type: "posix")
411
- pgbackrest_repo_user : " postgres " # if "repo_host" is set
410
+ pgbackrest_repo_host : " " # dedicated repository host
411
+ pgbackrest_repo_user : " " # if "repo_host" is set
412
412
pgbackrest_conf_file : " /etc/pgbackrest/pgbackrest.conf"
413
413
# see more options https://pgbackrest.org/configuration.html
414
414
pgbackrest_conf :
415
415
global : # [global] section
416
416
- { option: "log-level-file", value: "detail" }
417
417
- { option: "log-path", value: "/var/log/pgbackrest" }
418
+ # - { option: "repo1-host", value: "{{ pgbackrest_repo_host }}" }
419
+ # - { option: "repo1-host-user", value: "{{ pgbackrest_repo_user }}" }
418
420
- { option: "repo1-type", value: "{{ pgbackrest_repo_type |lower }}" }
419
- - { option: "repo1-host", value: "{{ pgbackrest_repo_host }}" }
420
- - { option: "repo1-host-user", value: "{{ pgbackrest_repo_user }}" }
421
+ - { option: "repo1-path", value: "/var/lib/pgbackrest" }
422
+ - { option: "repo1-retention-full", value: "4" }
423
+ - { option: "start-fast", value: "y" }
424
+ - { option: "delta", value: "y" }
425
+ - { option: "stop-auto", value: "y" }
426
+ - { option: "resume", value: "n" }
427
+ - { option: "link-all", value: "y" }
421
428
# - { option: "", value: "" }
422
429
stanza : # [stanza_name] section
423
430
- { option: "pg1-path", value: "{{ postgresql_data_dir }}" }
424
- - { option: "process-max", value: "2" }
425
431
- { option: "recovery-option", value: "recovery_target_action=promote" }
432
+ - { option: "log-level-console", value: "info" }
433
+ - { option: "process-max", value: "4" }
426
434
# - { option: "", value: "" }
427
435
pgbackrest_patroni_cluster_restore_command :
428
436
' /usr/bin/pgbackrest --stanza={{ pgbackrest_stanza }} --delta restore' # restore from latest backup
0 commit comments