Bug: v0.19.0: CLI/GUI/AppImage: repository.config Over-writes Without Warning

tags: das, direct attached storage, usb drive, usb disk, file system repo, webdav, dav, webdav repo, dav repo, multi repo, multiple repositories

  • I create a filesystem based repo to a USB attached volume. Result:
    • A basic set of Kopia files appear as expected in the target dir.
    • $HOME/.config/kopia/repository.conf shows a "path:" of the expected path.
  • I create another filesystem based repo to an internal disk/attached volume. Result:
    • A basic set of Kopia files appear as expected in the target dir.
    • Only one $HOME/.config/kopia/repository.conf present.
    • This conf shows the "path:" of the second volume.

There is no trace of the conf for the USB attached volume!

Do these devs™ even lack the foresight to think people have multiple volumes/endpoints in/from their machines?!

cat repository.config && nowutc
───────┬────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: repository.config
───────┼────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ {
   2   │   "storage": {
   3   │     "type": "filesystem",
   4   │     "config": {
   5   │       "path": "/media/usb-disk/kopia/000",
   6   │       "fileMode": 384,
   7   │       "dirMode": 448,
   8   │       "dirShards": null,
   9   │       "listParallelism": 4
  10   │     }
  11   │   },
  12   │   "caching": {
  13   │     "cacheDirectory": "../../.cache/kopia/c51079195f889780",
  14   │     "maxCacheSize": 5242880000,
  15   │     "maxMetadataCacheSize": 5242880000,
  16   │     "maxListCacheDuration": 30
  17   │   },
  18   │   "hostname": "hostname",
  19   │   "username": "username",
  20   │   "description": "Test Repository 000",
  21   │   "enableActions": true,
  22   │   "formatBlobCacheDuration": 900000000000
  23   │ }
───────┴────────────────────────────────────────────────────────────────────────────────────────────────
20250424T233005UTC
───────┬────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: repository.config
───────┼────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ {
   2   │   "storage": {
   3   │     "type": "filesystem",
   4   │     "config": {
   5   │       "path": "/mnt/volume/kopia/012",
   6   │       "fileMode": 384,
   7   │       "dirMode": 448,
   8   │       "dirShards": null,
   9   │       "listParallelism": 4
  10   │     }
  11   │   },
  12   │   "caching": {
  13   │     "cacheDirectory": "../../.cache/kopia/c017f435748de612",
  14   │     "maxCacheSize": 5242880000,
  15   │     "maxMetadataCacheSize": 5242880000,
  16   │     "maxListCacheDuration": 30
  17   │   },
  18   │   "hostname": "hostname",
  19   │   "username": "username",
  20   │   "description": "Test Repository 012",
  21   │   "enableActions": true,
  22   │   "formatBlobCacheDuration": 900000000000
  23   │ }
───────┴────────────────────────────────────────────────────────────────────────────────────────────────
20250424T233037UTC