Bug: v0.19.0: Global Policies Cannot Be Used Without A 'repository.config'

CLI/AppImage

All repositories have a ${HOME}/.config/kopia/$customRepoNameHere.config. Following this example from the Kopia docs to ensure no interfering ID10T errors, I execute

kopia policy set --global --compression="zstd-better-compression"

Result:

kopia policy set --global --compression="zstd-better-compression" ||  nowutc
ERROR open repository: repository is not connected. See https://kopia.io/docs/repositories/
20250430T055955UTC

However after setting a repository.config:

ls -l ${HOME}/.config/kopia/repository.config && \
kopia policy set --global --compression="zstd-better-compression" && nowutc
.rw------- 479 user 30 Apr 06:07 /home/user/.config/kopia/repository.config
Setting policy for (global)
 - setting compression algorithm to zstd-better-compression
20250430T060954UTC

I restart Kopia. Only 3 of the 4 repos have the defined compression applied & I’m more than sure that’s because I’d already applied them individually to the then 2 of 3 repos yesterday:

kopia policy show --config-file=$conf "${HOME}/sample" | grep Compression && nowutc
Compression disabled.
20250430T063344UTC

Related:

I think you are misguided what “global” in the policy configuration stands for: It means “global for this repository, not bound to any path in particular”.

But as the policy is stored in the repository, there is no concept of a “common global policy for all repositories I create”.

You have to configure your policies for each individual repository.