diff --git a/config/services/systemd/common/kopia/kopia-backup.service.j2 b/config/services/systemd/common/kopia/kopia-backup.service.j2 index 19abeac..1f3e18f 100644 --- a/config/services/systemd/common/kopia/kopia-backup.service.j2 +++ b/config/services/systemd/common/kopia/kopia-backup.service.j2 @@ -21,9 +21,9 @@ ProtectHome=tmpfs InaccessiblePaths=/boot /root {% if node['name'] == 'infra' %} -BindReadOnlyPaths=/home/infra/containers/postgresql/backups +BindReadOnlyPaths=%h/containers/postgresql/backups {% elif node['name'] == 'app' %} -BindReadOnlyPaths=/home/app/data +BindReadOnlyPaths=%h/data {% endif %} # In root namescope, %u always bring 0 BindPaths=/etc/kopia