this post was submitted on 28 Jul 2024
587 points (98.5% liked)

Technology

59581 readers
3237 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 57 points 3 months ago (2 children)

Keepass XC on PC, Keepass DX on Android, Syncthing to sync database

Works flawlessly!

[–] [email protected] 21 points 3 months ago (1 children)

Most amazingly, this setup is also unexpectedly resilient against merge conflicts and can sync even when two copies have changed. You wouldn't expect that from tools relying on 3rd party file syncing.

I still try to avoid it, but every time it accidentally happened, I could just merge the changes automatically without losing data.

[–] [email protected] 11 points 3 months ago (2 children)

How did you enable merge conflict resolution for KeePassXC databases?

[–] [email protected] 2 points 3 months ago* (last edited 3 months ago) (1 children)

Depends a bit on the clients.

  • KeePass: Will ask you if you want to synchronize/overwrite/discard the database when saving.
  • KeePassXC: Will autoreload the database in the background, so merge conflicts shouldn't happen in the first place. Otherwise there's 'Merge database' in the menu.
  • KeePass2Android: So I mixed up the names and this is the client I actually use. This one does all changes to an internal copy of the database that is then synchronized on request.
  • KeePassDX: As far as I can see it also has a mechanism similar too KeePass2Android.

Assuming you only have one desktop and mobile client you should never run into any issues. If you do have multiple KeePassXC clients it's all fine as well assuming Syncthing always has another client it can sync with.

[–] [email protected] 2 points 3 months ago

Ah, I can do it inside the client, thank you!

[–] [email protected] 1 points 3 months ago

By ignoring the conflict files

[–] [email protected] 1 points 3 months ago (1 children)

I store my DB in Dropbox and use KeePass2Android on phone which has built in Dropbox sync.

[–] [email protected] 1 points 3 months ago (1 children)

Yeah but then you have to trust Dropbox

[–] [email protected] 1 points 3 months ago

And I do, have used it for 10+ years I think. Keyfile is also used so even with leaked DB file and password, it should be inaccessible.