Fix borgmatic PostgreSQL backup and update backup sources #21
1 changed files with 3 additions and 3 deletions
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>
commit
27b113a97f
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue