this post was submitted on 15 Oct 2025
38 points (100.0% liked)

Linux

58970 readers
1148 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

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.

top 43 comments
sorted by: hot top controversial new old
[–] cornshark@lemmy.world 2 points 41 minutes ago

I might get downvoted for suggesting proprietary software for this, but if you were happy with Google Drive before, Dropbox seems like the easiest drop in replacement. It has a native Linux syncing client.

[–] snikta@programming.dev 1 points 1 hour ago
[–] kylian0087@lemmy.dbzer0.com 4 points 6 hours ago

I actually do this with a self hosted nextcloud instance.

[–] viduq@lemmy.kde.social 1 points 6 hours ago

Mailbox.org with WebDAV. The classical Keepass runs on Linux (although it does not look nice). On Android you can use Kepass2Android.

[–] neclimdul@lemmy.world 3 points 10 hours ago

I felt really dumb when I realized you weren't syncing a "keep ass" database. Thought it was some trendy next gen database created by someone who really dgaf.

[–] cyberpunk007@lemmy.ca 2 points 11 hours ago

I've been using nextcloud for years for this. Using Android and Linux and Windows.

[–] utopiah@lemmy.ml 2 points 11 hours ago

If most of your passwords are actually for Websites, Firefox has Profile letting you manage passwords across devices.

[–] Sxan@piefed.zip 38 points 22 hours ago (2 children)
[–] digdilem@lemmy.ml 2 points 8 hours ago

Seconded. Great bit of software.

[–] hellmo_luciferrari@lemmy.zip 12 points 22 hours ago (3 children)

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.

[–] digdilem@lemmy.ml 3 points 8 hours ago (1 children)

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

[–] hellmo_luciferrari@lemmy.zip 1 points 2 hours ago

Different sync tools manage files differently. And it likely depends on the file type.

[–] JillyB@beehaw.org 5 points 21 hours ago (2 children)

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?

[–] Novocirab@feddit.org 5 points 19 hours ago (4 children)

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 1 points 6 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 3 points 9 hours ago* (last edited 9 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 2 points 13 hours ago (1 children)

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 1 points 9 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.

[–] JillyB@beehaw.org 2 points 19 hours ago

Ahh this makes sense

[–] hellmo_luciferrari@lemmy.zip 2 points 21 hours ago

It should work for you! Especially if you are connected to the internet. But of course, wanted to bring up the one flaw I could think of up in case it would be an issue for you.

[–] Sxan@piefed.zip 0 points 19 hours ago (1 children)

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.

[–] hellmo_luciferrari@lemmy.zip 1 points 18 hours ago

I personally opted for a self hosted instance of Vaultwarden myself.

[–] imdanielch@lemmy.zip 1 points 10 hours ago

if you don't mind a self-hosted alternative, I use dufs. It is barebones so some understanding of hosting services is required

[–] redhilsha@lemmy.ml 21 points 21 hours ago (5 children)

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.

[–] pulsewidth@lemmy.world 3 points 9 hours ago

Second Syncthing, it is very fast, reliable, and flexible.

I used it coming from FileSync and Dropbox, and I had to change the way I thought about my shared folders to architect a good system for me. Eg: each root shared folder should serve a particular function that determines which devices it should be shared to (does this share need to be accessible in your phone? Laptop? PC? NAS?).

FYI you can set up untrusted peer sync to have your files all synching to another device (SFF device at your friend or relatives house, or a cloud server). That eliminates the concern of your house burning down, while keeping all of your Syncthing data secure and not worrying about it being stolen or accessed. If your house burns down you can connect back to the untrusted peer sync, put in your passphrase, and your data will all return.

https://t-shaped.nl/untrustedpeerencryption

[–] cyberpunk007@lemmy.ca 1 points 11 hours 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.

[–] leo85811nardo@lemmy.world 4 points 17 hours ago

In the case of house burn down, because Syncthing stores a 1-1 copy of the folder on every device in the network, you would still have your data even a single device survives the incident, such as a phone, or a laptop

[–] Teppichbrand@feddit.org 8 points 20 hours ago* (last edited 20 hours 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.

[–] monovergent@lemmy.ml 3 points 17 hours ago

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.

[–] swelter_spark@reddthat.com 3 points 17 hours ago

I use rclone run by crontab.

[–] JillyB@beehaw.org 5 points 20 hours 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.

[–] mistermodal@lemmy.ml 2 points 18 hours ago

Foldersync was my move before I switched to a custom ROM, it's proprietary but reliable and not expensive.

[–] FrostyPolicy@suppo.fi 2 points 21 hours ago (1 children)
[–] hersh@literature.cafe 1 points 20 hours 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.

[–] baconmonsta@piefed.social 1 points 20 hours ago

Resilio Sync

[–] SrMono@feddit.org 1 points 20 hours ago

I sync using jottacloud (given that I use the database on my smartphone in a read only fashion)

There is a CLI for linux.

[–] Kory@lemmy.ml 1 points 21 hours ago (1 children)

What do you mean Keepass doesn't work? https://keepassxc.org/ comes as Flatpak.

[–] JillyB@beehaw.org 4 points 21 hours ago (1 children)

Keepass works but you need a way to sync the database file between devices. This is the part that doesn't work.

[–] bismuthbob@sopuli.xyz 1 points 21 hours ago

Syncthing is an option on the desktop side and it works with Syncthing-Fork on Android. It takes a bit of setting up, but I've been using a setup like this for years now.

[–] gangrif@social.undrground.org 0 points 22 hours ago (1 children)

@JillyB ... bitwarden.

I recently had need of syncthing and it's also quite nice.

[–] JillyB@beehaw.org 1 points 21 hours ago (2 children)

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@lemmy.zip 1 points 19 hours 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.

[–] smeg@feddit.uk 1 points 20 hours ago

While it does have a paid tier it's fully useable for free, and I'm pretty sure you can import from keepass