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.

    • The downside is that if a device you aren’t online with modifies it, and doesn’t reconnect to the internet or even LAN that the other client is on, other clients will be out of date and potentially cause file syncing/overwriting issues.

      But SyncThing is a good tool for this.

      • Ŝan • 𐑖ƨɤ ( Sxan@piefed.zip ) 
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 year ago

        KeePass(XC & 2Android) has a really excellent merge algorithm. I rarely have issues wiþ merging, but yeah - you do have to watch out for sync files and merge DBs ASAP.

        I’m not sure how Drive would address þis, þough. Any conflicting, offline change is going to cause a conflict, and only KeePass knows how to merge DB conflicts.

      • JillyB ( JillyB@beehaw.org ) OP
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        For a password manager, I’m not sure if this is an issue since I’m only changing the database file while connected to the internet. Am I overlooking something?

        • 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 ^^

          • 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.

          • frongt ( frongt@lemmy.zip ) Banned from community
            link
            fedilink
            arrow-up
            2
            ·
            1 year 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.

      • Dingaling ( digdilem@lemmy.ml ) 
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        Is offline file editing an issue with all file syncing tools?

        I’ve been using Syncthing for a year or so and not noticed that it’s any worse or better at this than GDrive or Dropbox

  • redhilsha ( redhilsha@lemmy.ml ) 
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    I’m surprised no one recommended syncthing.

    Syncthing lets you sync changes on any folder/drive across multiple devices via the local network - no cloud needed. I currently use it for my keepass database, Music folder and Documents folder. It’s als very simple to set up.

    Only downside to this is that if your house burns down you’ll lose everything - but a friend suggested me to have important files on an encrypted tarball stored in the cloud.

    • Teppichbrand ( Teppichbrand@feddit.org ) 
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      1 year ago

      I have syncthinged my desktop (Mint as well) and my smartphone with a Raspberry Pi (DietPi!) as middledevice. If I change something on one of the two, the file gets synched to the Raspi, which then gives it to the other device as soon as it’s online. This works great since a couple of years.

    • Only downside to this is that if your house burns down you’ll lose everything - but a friend suggested me to have important files on an encrypted tarball stored in the cloud.

      For those with lots of files and poor upload speeds but blessed with a desk at work, also consider stashing an encrypted disk in a drawer / fake plant / etc.

    • yeehaw ( cyberpunk007@lemmy.ca ) 
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      The amount of headaches I had setting this up… I can’t tell you how hard I tried.

      I think in the end I figured out it doesn’t like vlans very much if you don’t want to use their relay.

  • phaedrus ( phaedrus@piefed.world ) 
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 year ago

    Others have said it, but SyncThing all the way. Open source, been around for a decade, battle tested, no cloud, full control over everything.

    I didn’t see this mentioned, but you can also tell KeePass to auto reload the database if the file gets updated elsewhere. Makes it so you can run the same KeePass database on multiple devices with live/realtime updates. I’ve used this setup instead of vaultwarden/passbolt on several IT teams to keep the important stuff separate from the normal systems. It’s not on by default usually, but right in the Basic Settings page under File Management.

    I have KeePass+SyncThing on 3 laptops, 2 androids, and a home server. If I add a password to one of my androids while I’m out and about (and I have cell data), next time I sit down at my desk it’s already available. Vice versa works, too. If my home server dies, the other devices don’t care and keep syncing amongst themselves. I think I’ve had some version of this setup going since SyncThing released, I can’t imagine using anything else.

    Do note that since there is no cloud or infrastructure behind it, sync conflicts do happen when a device in the network goes offline for a while. It’ll never get rid of files if there’s an error syncing, but instead create a second copy with a timestamped filename. If this happens to your password db file, KeePass can then merge the two copies together and sort things out mostly automatically. Over the many years I’ve been using this, it doesn’t happen as often when you’re the only person using any of the devices that sync. It can happen a lot when you share the setup with someone else, though.

  • JillyB ( JillyB@beehaw.org ) OP
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    Thanks to everyone recommending Syncthing. I just set that up on all my devices and it’s pretty much purpose built for what I’m doing. A little bit fidly to set up but not that bad and it seems to just work now.

    • hersh ( hersh@literature.cafe ) 
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I used to use Filen for this, but it never worked very well. The file provider path it returned to Keepass2android was only temporary, so it would break periodically. Did Filen change how that works?

      I eventually started using Syncthing instead. I connect to my home wi-fi often enough that it’s never too far out of sync with my home PC. And since it’s a local file, there’s no issue with using absolute paths.

    • JillyB ( JillyB@beehaw.org ) OP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Bitwarden is just a paid password manager, right? Do you know if it’s possible to transfer my passwords from a Keepass database into bitwarden?

      • 0x0 ( 0x0@lemmy.zip ) 
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Bitwarden’s got a free plan and you can also self-host it.
        You can migrate from bitwarden to keepass, i’m not sure about the other way around.

      • @JillyB Bitwarden is both a paid, and a self-hosted password manager. But its nature is sync everywhere. If you just pay for bitwarden you use their servers (or if you dont need a family plan you can use it free!), but you can also host your own. Its similar in concept to LastPass, except more open in that you can host your password database.

        I do not know if there is an importer from Keepass.