Firstly, thank you so much for all the work on Kopia. I have been looking for a backup solution which is simple enough for end users and powerful enough for power users when required, and it looks like Kopia is it!
So far all my test have been good except for one thing which really threw me, and another which is a feature request:
- Please rename the “Disconnect” button under the Repository tab to something like “Delete repository definition”, because that’s what it does — it does not merely disconnect.
- TL;DR for the feature request (detail is below): repositories should be able to be marked as in/active, with a defined default for each/all. If repositories could have tags assigned, then it would be easy to de/activate sets of repositories, e.g. Client_1, Office, Home, Fast_connection.
Use case
The reason I clicked on “Disconnect” is because that is what I needed to do: disconnect from a specific repository and then later reconnect to it.
The reason is simple: I use my laptop both at work and at home. Each environment has its own repository/ies, and Kopia should not try in one environment to connect to any repositories from the other.If I cannot deactivate a repository, then two potential problems occur.
- If I need to connect to work from home via VPN, then Kopia sees the work SFTP repository and starts backing up work data over my very expensive and very limited connection from home. The same happens if I connect to a work Samba server and the repository definition which uses that sees it and also starts backing up, because it is made for LAN, not WAN use.
- I checked with Wireshark and Kopia continually tries to connect to all the defined SFTP repositories (I didn’t check other repository types). Yes, it it does so using an exponentially increasing timeout, but only up to a point (133 seconds) and then it starts all over again. Depending on the environment that can have my laptop blacklisted by a LAN server using something like fail2ban or by the egress firewall because it’s trying to get to another, non-work, subnet.
Feature request
[I am the only power user type person in my work environment, so this would need to work in the GUI as well as the CLI.]
Functionality
- Ability to mark repositories as in/active.
- Assign tags to repositories and be able to de/activate according to tag.
- Use repository names to name the related
.config
and.cache
files, which would make it much less error-prone to use from the CLI. - Separating log file names to include the repository name would also be helpful, though a bit of
grep
orawk
is fine.
Implementation
On Linux the NetorkManager package has a workable tray icon approach:
- Left-click is the user interface and brings up the list of pre-defined networks, showing the connectivity status of each. Clicking on one toggles its status.
- Right-click is the admin interface and shows a list of actions such as editing/defining new connections, or showing connection information.
It would be helpful to colour each repository in that list according to its status, for example:
- Green: Connected
- Amber: Not connected, because I’m not supposed to be
- Red: Should be connected, but can’t
I think that approach could be adapted for Kopia.
Once again, thank you so much for the work, and I hope that this feature request can be implemented, as I believe it will enhance Kopia’s potential use greatly.