I recently switched my desktop to Linux mint. Overall it seems to work well for me. The one exception is that my password manager, Keepass, won’t work. I currently use Gdrive to sync the database between devices. It works very well for this purpose. Is there another way I can sync this file as seemlessly as Gdrive? It would to work for an Android phone and Mint PC.

  • Novocirab@feddit.org
    link
    fedilink
    arrow-up
    5
    ·
    1 day ago

    SyncThing only syncs when both devices are online at the same time.

    So a comon scenario is: You change the DB on your laptop, then shut it down. You open the DB on your desktop. Since the lapotp isn’t online at the same time, you are working with the old DB version. If you change it, you have two competing versions.

    I don’t know exactly what happens then; I’m facing it and am procrastinating dealing with it ^^

    • RaivoKulli@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      11 hours ago

      It creates a sync conflict file, so the data is there but the two differing versions aren’t automatically resolved.

      One way out of this is to either have it on a server that’s always connected (less common) or to just have it on your phone. That way you have an intermediary that syncs the changes.

    • Don_alForno@feddit.org
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      14 hours ago

      Keepass 2 / Keepass XC actually has a function for this case and does pretty well in merging the two conflicting versions of the database.

    • frongt@lemmy.zip
      link
      fedilink
      arrow-up
      2
      ·
      18 hours ago

      That sync will be resolved by syncthing’s logic. It will probably result in lost data.

      I would suggest an app that does its own sync logic, like vaultwarden. That way, the client can update the database when it’s back online, instead of an external sync replacing the whole database file.

      • IanTwenty@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        14 hours ago

        Synching will create a conflict file when this happens. Nothing is lost but a user must look out for these files and merge manually.

        KeepassXC has its own merge logic and will happily absorb changes to a file on disk whilst open. However if two offline machines both change a database then you will get a conflict file and will have to ask keepass to merge them.