kopia_backup: set zstd as the global compression policy on every run

This commit is contained in:
2026-11-04 06:59:47 +00:00
parent 6334820750
commit ce851f59c6
+4
View File
@@ -35,6 +35,10 @@ dump() { # file, container, command run inside the container
dump {{ d.file | quote }} {{ d.container | quote }} {{ d.command | quote }} dump {{ d.file | quote }} {{ d.container | quote }} {{ d.command | quote }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
# Global policy of the repository, inherited by every source; the repository is shared by all hosts of the bucket
kopia policy set --global --compression=zstd >/dev/null 2>&1 ||
{ echo "setting the global compression failed" >&2; failed=1; }
{% set ignores = kopia_backup.ignore | dict2items | rejectattr('value', 'none') | list %} {% set ignores = kopia_backup.ignore | dict2items | rejectattr('value', 'none') | list %}
{% if ignores %} {% if ignores %}