{"id":24440642,"url":"https://github.com/mivek/ansible-role-pgbackrest","last_synced_at":"2026-01-02T04:41:45.410Z","repository":{"id":91218869,"uuid":"600395115","full_name":"mivek/ansible-role-pgbackrest","owner":"mivek","description":"Ansible role to install and configure pgbackrest","archived":false,"fork":false,"pushed_at":"2025-02-10T18:24:42.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T18:36:31.572Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mivek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"mivek"}},"created_at":"2023-02-11T11:07:35.000Z","updated_at":"2025-02-10T18:20:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"01ba6f75-5d31-497b-8e24-cb3a9b50a3a9","html_url":"https://github.com/mivek/ansible-role-pgbackrest","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mivek%2Fansible-role-pgbackrest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mivek%2Fansible-role-pgbackrest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mivek%2Fansible-role-pgbackrest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mivek%2Fansible-role-pgbackrest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mivek","download_url":"https://codeload.github.com/mivek/ansible-role-pgbackrest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243509153,"owners_count":20302141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-20T20:56:54.616Z","updated_at":"2026-01-02T04:41:45.383Z","avatar_url":"https://github.com/mivek.png","language":"Jinja","funding_links":["https://ko-fi.com/mivek"],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/mivek/ansible-role-pgbackrest/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/mivek/ansible-role-pgbackrest/actions/workflows/ci.yml)\n\nAnsible Role: PgBackrest\n=========\n\nInstalls and configures PgBackrest on Debian/Ubuntu servers.\n\nRequirements\n------------\n\nNone.\n\nRole Variables\n--------------\n\n    pgbackrest_version: 2.43\nThe version of pgbackrest to install.\n\n\n    pgbackrest_user: postgres\nThe user running pgbackrest.\n\n\n    pgbackrest_group: postgres\nThe group of the user running pgbackrest.\n\n    pgbackrest_user_home: /var/lib/postgresql\nHome directory of the user running pgbackrest\n\n    pgbackrest_install_method: repository\nInstallation method of `pgbackrest`. Either repository or `source`.\n\n    pgbackrest_configuration_global_options: []\nList of global options to set. The structure is a list of objects with keys: `option` and `value`.\n\n    pgbackrest_configuration_archive_push_options: []\nList of archive push options to set. The structure is a list of objects with keys: `option` and `value`.\n\n    pgbackrest_configuration_archive_get_options: []\nList of archive get options to set. The structure is a list of objects with keys: `option` and `value`.\n\n    pgbackrest_configuration_stanzas: []\nList of stanzas. Each stanza has a name and a list of hosts. Each host has a list of options.\n\n    pgbackrest_configuration_repositories: []\nList of repositories configuration. Each repository is a list of `options`. Option are composed of a `name` and a `value`.\n\n    pgbackrest_create_stanza: true\nWhether to run the command to create the stanza.\n\n    pgbackrest_check_stanza: true\nWhether to run the command to verify the stanza configuration.\n\n    pgbackrest_backup_cron: []\nList of cron jobs to create to perform backups. All parameters from the `cron` modules are available.\nAdditionally, the `stanza` and `type` of backup are required. It is also possible to pass options as string in the parameter `options`.\n\n    pgbackrest_user_private_key:\nThe private ssh key of the pgbackrest user.\n\n    pgbackrest_user_authorized_keys: []\nList of public ssh keys to add to the authorized keys of the user.\n\nDependencies\n------------\n\nNone\n\nExample Playbook\n----------------\n\nIncluding an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:\n\n    - hosts: servers\n      vars:\n        pgbackrest_user: postgres\n        pgbackrest_group: postgres\n        pgbackrest_configuration_global_options: []\n        pgbackrest_configuration_stanzas:\n        - name: demo\n          hosts:\n            - options:\n                - name: path\n                  value: '/var/lib/postgresql/{{ postgresql_version }}/main'\n        pgbackrest_configuration_repositories:\n          - options:\n                - name: path\n                  value: /var/lib/pgbackrest\n                - name: retention-full\n                  value: 2\n                - name: cipher-pass\n                  value: zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGirhPygu4jOKOXf9LO4vjfO\n                - name: cipher-type\n                  value: aes-256-cbc\n          - options:\n              - name: path\n                value: /var/lib/pgbackrest2\n        pgbackrest_configuration_archive_push_options:\n            - name: compress-level\n              value: 3\n        pgbackrest_backup_cron:\n            - stanza: demo\n              type: full\n              weekday: SUN\n              hour: 0\n              minute: 0\n              name: Full backup\n            - stanza: demo\n              type: diff\n              day: '*'\n              hour: 12\n              minute: 0\n              options: --backup-standby=y\n              name: Incremental backup from standby\n    roles:\n        - mivek.pgbackrest\n\nLicense\n-------\n\nBSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmivek%2Fansible-role-pgbackrest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmivek%2Fansible-role-pgbackrest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmivek%2Fansible-role-pgbackrest/lists"}