Add a pre_command to kopia_backup for host dump scripts and install gpg for the apt key

This commit is contained in:
2026-10-08 08:51:23 +00:00
parent b45a07da56
commit d345ccf585
3 changed files with 11 additions and 0 deletions
+4
View File
@@ -5,6 +5,10 @@ set -uo pipefail
export KOPIA_CHECK_FOR_UPDATES=false
failed=0
sources=()
{% if kopia_backup.pre_command %}
{{ kopia_backup.pre_command }} || { echo "pre_command failed" >&2; failed=1; }
{% endif %}
{% if kopia_backup.etcd_snapshot %}
# Only the latest etcd snapshot; the live etcd dir is not consistent on disk and older snapshots only add churn