matrix-backup-borg: integrate postgres backups, add extended borgmatic configuration

This commit is contained in:
Aine
2022-04-14 18:06:54 +03:00
parent 2df993977a
commit d5f4c17146
6 changed files with 121 additions and 16 deletions

View File

@ -26,6 +26,16 @@ consistency:
- archives
hooks:
{% if matrix_backup_borg_postgresql_enabled %}
postgresql_databases:
{% for database in matrix_backup_borg_postgresql_databases %}
- name: {{ database }}
hostname: {{ matrix_backup_borg_postgresql_databases_hostname }}
username: {{ matrix_backup_borg_postgresql_databases_username }}
password: {{ matrix_backup_borg_postgresql_databases_password }}
port: {{ matrix_backup_borg_postgresql_databases_port }}
{% endfor %}
{% endif %}
after_backup:
- echo "Backup created."
on_error: