Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to configure a dedicated pgBackRest server #379

Merged
merged 4 commits into from
Jun 12, 2023

Conversation

vitabaks
Copy link
Owner

@vitabaks vitabaks commented Jun 11, 2023

This PR introduces significant improvements to our backup and recovery capabilities with pgBackRest.

The main feature is the ability to configure and manage the dedicated pgBackRest servers (pgbackrest_server_conf variable). Previously, backup configuration was limited to the database servers only.

In addition to these improvements, add pgBackRest cron jobs via the "pgbackrest_cron_jobs" variable. Backup Jobs will be automatically configured. By default, the cron jobs is created on the database server. If 'pgbackrest_repo_host' is defined, the cron jobs will be created on the dedicated pgBackRest server.

Updated the pgBackRest configuration template to enable configuration of a single dedicated pgBackRest server for multiple Postgres clusters.

This commit introduces significant improvements to our backup and recovery capabilities with pgBackRest. The main feature is the ability to configure and manage the dedicated pgBackRest servers. Previously, backup configuration was limited to the database servers only.

The primary advantages of this change are:

Separation of concerns: It enables administrators to maintain dedicated backup servers, which can increase the robustness and reliability of the backup and recovery process.

Flexibility: The backup servers can be configured differently than the database servers, allowing for more tailored backup and recovery scenarios.

Backup cron jobs: In addition to these improvements, this commit introduces the ability to manage pgBackRest cron jobs via the "pgbackrest_cron_jobs" variable. Backup Jobs will be automatically configured.

Additionally:

Docker containers (for Molecule) are configured for ssh interaction. This allows we to test roles for configuring ssh keys.
@vitabaks vitabaks added enhancement New feature or request sponsor's request labels Jun 11, 2023
@vitabaks vitabaks self-assigned this Jun 11, 2023
Updated the pgBackRest configuration template to enable configuration of a single dedicated pgBackRest server for multiple Postgres clusters.

Added support for the include-path option, allowing inclusion of additional configuration files.

Introduced a global section to configure global settings, iterating over the pgbackrest_server_conf.global list for values.

Utilized the include-path directive to include configuration files for stanzas from the specified path ({{ pgbackrest_conf_file | dirname }}/conf.d).

These updates provide the ability to configure a dedicated pgBackRest server for multiple Postgres clusters, enhancing flexibility in managing backup and restore operations across multiple environments.
@vitabaks vitabaks merged commit f826ca1 into master Jun 12, 2023
19 checks passed
@vitabaks vitabaks deleted the pgbackrest-server branch June 13, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sponsor's request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant