Update dump format

This commit is contained in:
Stanislas Lange 2022-10-11 19:11:38 +02:00
parent ed0aa82b87
commit de417427f0
No known key found for this signature in database

View file

@ -28,7 +28,7 @@ ExecStart={{ restic_path }} backup --verbose {{ folder.path }} {{ folder.exclude
{% endfor -%} {% endfor -%}
{% for database in restic_databases %} {% for database in restic_databases %}
ExecStart=/bin/sh -c "{{ database.dump_command }} {{ '| pigz |' if restic_dump_compression_enabled else '|' }} {{ restic_path }} backup --verbose --stdin --stdin-filename {{ database.name }}{{ '.sql.gz' if restic_dump_compression_enabled else '.sql' }}" ExecStart=/bin/sh -c "{{ database.dump_command }} {{ '| pigz |' if restic_dump_compression_enabled else '|' }} {{ restic_path }} backup --verbose --stdin --stdin-filename {{ database.name }}{{ '.dump.gz' if restic_dump_compression_enabled else '.dump' }}"
{% endfor -%} {% endfor -%}
{% if restic_forget %} {% if restic_forget %}