# KOPIA\_CONFIG\_PATH not effective in KopiaUI?

**URL:** <https://kopia.discourse.group/t/kopia-config-path-not-effective-in-kopiaui/1212>\
**Category:** Support\
**Created:** [June 13, 2022, 12:39am UTC](https://kopia.discourse.group/t/kopia-config-path-not-effective-in-kopiaui/1212 "2022-06-13T00:39:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ingul-buz](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/ingul-buz/32/417_2.png) [@ingul-buz](https://kopia.discourse.group/u/ingul-buz)\
**Post date:** [June 13, 2022, 12:39am UTC](https://kopia.discourse.group/t/kopia-config-path-not-effective-in-kopiaui/1212/1 "2022-06-13T00:39:06Z")

</div>

Hi, a new user here. I’ve been using Kopia for a while and like it very much. Thank you to everyone involved.

The following may be something I don’t understand correctly, but I’ll ask anyway. I’m using Kopia 0.10.7 on Windows 10.

It seems to me that the KOPIA\_CONFIG\_PATH environment variable has no effect with KopiaUI. I tried to set these environment variables:

KOPIA\_CONFIG\_PATH [path]\xyzzy.config  
KOPIA\_LOG\_DIR [path]  
KOPIA\_CACHE\_DIRECTORY [path]

While using Kopia command line all those variables were effective: the repository was connected using xyzzy.config and logs and cache were written where I pointed them to in the variables.

Then I started KopiaUI, and it connected nowhere. It only presented me with the “Select Storage Type” window, so I manually filled up the storage configuration (an SFTP server in this case) and connected there. After checking out what effect the environment variables may have had, I figured out that KOPIA\_LOG\_DIR and KOPIA\_CACHE\_DIRECTORY were still working as expected.

Unfortunately KOPIA\_CONFIG\_PATH was not: the config file was written into the common user %APPDATA% directory as _repository.config_ (or repository-\<unix\_timestamp\>.config, if one existed already). In no way could I make it write or use the config file in the KOPIA\_CONFIG\_PATH location.

In practise this means that with KopiaUI you are restricted to use config files in the user %APPDATA% directory only. You cannot point it to another location using `--config-file` as with the command line utility, and now it seems KOPIA\_CONFIG\_PATH has no effect either.

Maybe this is how it’s supposed to work, but I’m still a little confused.

---

<div class="post-metadata">

**Author:** ![jkowalski](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/jkowalski/32/3_2.png) [@jkowalski](https://kopia.discourse.group/u/jkowalski)\
**Post date:** [June 13, 2022, 12:51am UTC](https://kopia.discourse.group/t/kopia-config-path-not-effective-in-kopiaui/1212/2 "2022-06-13T00:51:34Z")

</div>

KopiaUI launches one instance of kopia as subprocess and forces particular config path, so that’s by design.

BTW If you run `kopia server`, you’ll be able to access pretty much the same UI as KopiaUI (except few minor differences).

---

<div class="post-metadata">

**Author:** ![ingul-buz](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/ingul-buz/32/417_2.png) [@ingul-buz](https://kopia.discourse.group/u/ingul-buz)\
**Post date:** [June 13, 2022, 7:49am UTC](https://kopia.discourse.group/t/kopia-config-path-not-effective-in-kopiaui/1212/3 "2022-06-13T07:49:24Z")

</div>

OK, thanks for the answer. Fair enough, I can live with that. I haven’t dived into `kopia server` yet, and I’m not sure if I will in the near future.

I’m still curious to know what’s the reason for KopiaUI to force the config path.

---

<div class="post-metadata">

**Author:** ![basldfalksjdf](https://avatars.discourse-cdn.com/v4/letter/b/ce73a5/32.png) [@basldfalksjdf](https://kopia.discourse.group/u/basldfalksjdf)\
**Post date:** [June 13, 2022, 9:07pm UTC](https://kopia.discourse.group/t/kopia-config-path-not-effective-in-kopiaui/1212/4 "2022-06-13T21:07:36Z")

</div>

I suspect it is because you can run multiple instances of KopiaUI to connect to different repos, and each instance of KopiaUI creates its own config file. Having a preset location for the config file simplifies the process, but I do not see why someone couldn’t submit a PR for custom config path for KopiaUI.

---

<div class="post-metadata">

**Author:** ![ingul-buz](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/ingul-buz/32/417_2.png) [@ingul-buz](https://kopia.discourse.group/u/ingul-buz)\
**Post date:** [June 14, 2022, 8:54am UTC](https://kopia.discourse.group/t/kopia-config-path-not-effective-in-kopiaui/1212/5 "2022-06-14T08:54:47Z")

</div>

Well, I certainly wouldn’t mind having the ability to set the config file location in KopiaUI, too. After all it only should follow this particular environment variable like it already does with at least some of the other ones. But as long as I don’t know the exact reasoning for this behavior, I’m not sure if it’s serious enough for submitting a PR, for me at least. Of course it’s possible I could change my mind later… 😁
