Fix borgmatic PostgreSQL backup and update backup sources #21

Merged
eblume merged 5 commits from feature/improve-borgmatic-backups into main 2026-01-17 09:22:02 -08:00
Showing only changes of commit 27b113a97f - Show all commits

Fix pg_dump_command placement in borgmatic config

pg_dump_command must be nested under each database entry, not at the
top level.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Erich Blume 2026-01-17 08:52:42 -08:00

View file

@ -35,14 +35,14 @@ keep_yearly: {{ borgmatic_keep_yearly }}
{% if borgmatic_postgresql_databases %}
# PostgreSQL database backups (streamed via pg_dump)
{% if borgmatic_pg_dump_command is defined %}
pg_dump_command: {{ borgmatic_pg_dump_command }}
{% endif %}
postgresql_databases:
{% for db in borgmatic_postgresql_databases %}
- name: {{ db.name }}
hostname: {{ db.hostname | default('localhost') }}
port: {{ db.port | default(5432) }}
username: {{ db.username }}
{% if borgmatic_pg_dump_command is defined %}
pg_dump_command: {{ borgmatic_pg_dump_command }}
{% endif %}
{% endfor %}
{% endif %}