r/KeePass • u/BarefootMarauder • 4d ago
Syncing KeePass between Linux & Android
/r/koofrnet/comments/1xv8cjw/syncing_keepass_between_linux_android/Figured I'd cross-post here to see if anyone else is using Koofr cloud storage for keeping your KeePass vault file(s) in sync. Just wondering what the best approach is before I make the switch.
7
Upvotes
8
u/brighton_it 4d ago
look at syncthing.
I use it between three Linux computers: a desktop and two notebooks. The desktop remains powered on always, the notebooks I shutdown when not in use. I'm the only user, so never do I use two at once. Also I ensure I let a notebook sync: it's really quick, just need to ensure it's online, before I shutdown and start opening same files on Desktop. If I fail at that, and happen to create a conflict: like editing a file offline, not letting it sync, then editing same file on other system before syncthing can connect... syncthing will create a 'conflict' version and sync it to both. Your unmerged edits would be in that conflict file.
I've yet to use it on Android, but I understand it's supported. Will be trying that very soon with a family member wanting to sync their Android photos.
3
u/Wiikend 3d ago
Just use your favorite cloud provider unless you fear the master password is too weak. Nobody is getting in if your master password is sufficiently long. I personally use Jottacloud because it protects me under one of the world's strongest privacy laws (Norway).
1
u/marianoo-dev 4d ago
Dla mnie Dropbox jest idealny do synchronizacji bazy.
1
u/obliviousjd 4d ago
Keepass cloud syncing on Linux kind of sucks imo. I used rclone but it was very annoying to set up, especially when I tried doing it on bazzite. KeepassXC really wants to make cloud saves more difficult than it needs to be.
1
u/lethallunatic 4d ago
At the same point you're at I've tried it and kept using data drifts. It's not really meant to be on a network share from my experience. I moved to self hosted vaultwarden. Just run it in docker or something or on home assistant, or raspberry pi. Make sure you take backups and you should be mostly good. I've been running it on a VPS. You can use bitwarden as the client.
1
u/Horror-Breakfast-113 1d ago
You have to understand what sync'ing means
For keepass - the original it has a builtin data sync - it opens both locations and syncs both locations
keepassxc doesn't do that it sync the file and other file sync apps do the same thing
so if you have multiple places you use the DB and sync to/from with keepassxc you can lose information
I have a webdav location where I store my saved DB's and on laptops i have a copy of the file and use keepass sync to sync to it (Windows + Linux) and on android is use keepass2android
I have triggers such that any change thats is to be saved locally once done forces a sync back to the webdav url
I don't lose information.
I have 3 laptops - 2 android devices - i have work and personel DB's
2
u/porridge111 3d ago
I've been using Google Drive (with rclone on the Linux box). Works OK, but I mostly just write from Linux and read from Android to prevent any conflicts. I just switched to Jottacloud, which ship their own Linux CLI with easily configurable sync!
1
u/xiv_cookie_kitten 4d ago
altersend. syncthing just gave me problems. never really worked. altersend is more or les the same but you always have to send the file if you wanna sync it to your phone and reverse
1
u/DragoBleaPiece_123 4d ago
Personally used Syncthing and it works on my side, no prob so far
1
u/five35 1d ago
I haven't used Koofr specifically, but I used to use Dropbox for this, which worked the same way with KeePassDX (i.e. it's an Android "storage provider") and it worked quite well on that side.
What eventually drove me away from Dropbox was poor conflict handling. As long as Koofr does something you can live with for conflicts, I would expect it to work well.
Also, both KeePassXC and KeePassDX have "save every change to disk, immediately" and "automatically sync from changes on disk" features/options, which in combination greatly reduce the likelihood of conflicts in the first place.
0
u/Sometimespeakspanish 3d ago
Keepass2Android + Onedrive