How to Check Content Stats of Multiple Repos in KopiaUI?

Hi, so I use KopiaUI on Win10 to backup my local files.

I have 3 repositories, each on a different external hard disk. All are connected in the UI. Managing them via the UI is easy and has worked well so far.

But time to time I like to use the CLI to check the content stats and check other repo details that are only possible via CLI. Doing this is very easy for the main repo, because I just open Command Prompt and type the command; it’ll use that repo only.

To do it on other repos, I use the quick-switch command:

kopia repository connect from-config --token

However, I noticed that this actually replaces the first Kopia repo in KopiaUI. For example, if Repo1 was selected as the first one, and I run that command to connect to Repo 3, then Repo3 will become the first one in KopiaUI, Repo1 will be disconnected, and it will show 2 instances of Repo3. So this is a bit troublesome as I have to reconnect/disconnect accordingly. Not sure if this is a bug or intended behavior.

As I understand, KopiaUI is spinning up multiple instances of Kopia under the hood to connect to multiple repositories. Is there any easy way to just access the various repos via CLI, while keeping them unaffected in the UI? Any special commands that do that? Thanks.

When you have all these repositories in UI it means that they are all connected already.

Now when using CLI specify just correct config file to use with --config-file flag.

You can see config files details in UI - just click at this icon at the bottom of the UI window.

Or check kopia documentation where in Windows config files are stored and look there.

Then for example:

kopia --config-file="C:/path/repository.config" snapshot list
kopia --config-file="C:/path/repository-89743298723.config" snapshot list
kopia --config-file="C:/path/repository-12345564565.config" snapshot list

to list snapshots from three different repos.

First repo in UI always uses repository.config file so if you reconnect it via CLI then it is reflected in UI…

As explained earlier you do not have to reconnect every time. You can but I am not sure for what:)

1 Like