# Syncing KeepassXC database

**URL:** https://forum.syncthing.net/t/syncing-keepassxc-database/17330
**Category:** Support
**Created:** [September 11, 2021, 7:29am UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330 "2021-09-11T07:29:34Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![francois072](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/f/838e76/32.png) [@francois072](https://forum.syncthing.net/u/francois072)
#### Post date: [September 11, 2021, 7:29am UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/1 "2021-09-11T07:29:34Z")

</div>

I am using Syncthing to sync the database between my PC and phone, and it works well when both are connected to the same network.

Problem is that when both are disconnected, and I change something on the database on both devices then Syncthing has a conflict.

I understand why there is a conflict, but is there a better way to deal with this from my KeePassXC setup side?

---

<div class="post-metadata">

### Author: ![martinleben](https://forum.syncthing.net/user_avatar/forum.syncthing.net/martinleben/32/9049_2.png) [@martinleben](https://forum.syncthing.net/u/martinleben)
#### Post date: [September 11, 2021, 7:57am UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/2 "2021-09-11T07:57:54Z")

</div>

> [@francois072](#):
>
> I understand why there is a conflict, but is there a better way to deal with this from my KeePassXC setup side?

From the perspective of Syncthing: No. From the perspective of KeePassXC: Probably not, but I guess it is more likely you get help in a KeePassXC forum.

---

<div class="post-metadata">

### Author: ![martinleben](https://forum.syncthing.net/user_avatar/forum.syncthing.net/martinleben/32/9049_2.png) [@martinleben](https://forum.syncthing.net/u/martinleben)
#### Post date: [September 11, 2021, 8:05am UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/3 "2021-09-11T08:05:03Z")

</div>

Personally I very rarely have a time window in which BOTH devices are 1) disconnected and 2) I modify the file on both devices.

This is based on these assumptions:

1. Global discovery and relaying is always on.
2. The cellphone almost always have internet connection.
3. The computer almost always have internet connection.

---

<div class="post-metadata">

### Author: ![francois072](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/f/838e76/32.png) [@francois072](https://forum.syncthing.net/u/francois072)
#### Post date: [September 11, 2021, 8:21am UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/4 "2021-09-11T08:21:10Z")

</div>

Unfortunately there is no KeePassXC forum.

---

<div class="post-metadata">

### Author: ![francois072](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/f/838e76/32.png) [@francois072](https://forum.syncthing.net/u/francois072)
#### Post date: [September 11, 2021, 8:22am UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/5 "2021-09-11T08:22:03Z")

</div>

I only use Syncrhing over LAN. Though I might just look into also doing it over the internet.

---

<div class="post-metadata">

### Author: ![tomasz86](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@tomasz86](https://forum.syncthing.net/u/tomasz86)
#### Post date: [September 11, 2021, 10:20am UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/6 "2021-09-11T10:20:38Z")

</div>

I use Syncthing to synchronise KeePass databases and it does the job very well, but yeah, if you edit the database file on different machines simultaneously, you will get conflicts.

You may want to look up an easy way to merge KeePass databases, perhaps by a command line script or something in that manner.

---

<div class="post-metadata">

### Author: ![canton7](https://forum.syncthing.net/user_avatar/forum.syncthing.net/canton7/32/9528_2.png) [@canton7](https://forum.syncthing.net/u/canton7)
#### Post date: [September 11, 2021, 10:24am UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/7 "2021-09-11T10:24:46Z")

</div>

I ended up using KeePass’s own synchronization functionality (although I use KeePass rather than KeePassXC), simply because that properly handles merging conflicts, and I didn’t want to risk locking myself out of somewhere due to a bad merge.

---

<div class="post-metadata">

### Author: ![francois072](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/f/838e76/32.png) [@francois072](https://forum.syncthing.net/u/francois072)
#### Post date: [September 11, 2021, 10:37am UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/8 "2021-09-11T10:37:53Z")

</div>

I use KeePassXC because I’m on Linux. Unfortunately KeePassXC can’t merge.

---

<div class="post-metadata">

### Author: ![francois072](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/f/838e76/32.png) [@francois072](https://forum.syncthing.net/u/francois072)
#### Post date: [September 11, 2021, 10:40am UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/9 "2021-09-11T10:40:57Z")

</div>

I did however think that Keeshare could resolve my issue. Could that work?

---

<div class="post-metadata">

### Author: ![canton7](https://forum.syncthing.net/user_avatar/forum.syncthing.net/canton7/32/9528_2.png) [@canton7](https://forum.syncthing.net/u/canton7)
#### Post date: [September 11, 2021, 11:02am UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/10 "2021-09-11T11:02:28Z")

</div>

From a quick scan of [the docs](https://github.com/keepassxreboot/keepassxc/blob/develop/docs/topics/KeeShare.adoc), it does seem to be talking about doing synchronization with merges, so quite possibly!

---

<div class="post-metadata">

### Author: ![martinleben](https://forum.syncthing.net/user_avatar/forum.syncthing.net/martinleben/32/9049_2.png) [@martinleben](https://forum.syncthing.net/u/martinleben)
#### Post date: [September 11, 2021, 12:41pm UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/11 "2021-09-11T12:41:22Z")

</div>

> [@francois072](#):
>
> I only use Syncrhing over LAN.

Unless your mobile internet connection is prohibitive expensive, I see absolutely no reason at all to only sync when on LAN.

---

<div class="post-metadata">

### Author: ![tomasz86](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@tomasz86](https://forum.syncthing.net/u/tomasz86)
#### Post date: [September 11, 2021, 1:10pm UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/12 "2021-09-11T13:10:44Z")

</div>

> [@martinleben](#):
>
> Unless your mobile internet connection is prohibitive expensive, I see absolutely no reason at all to only sync when on LAN.

Not really on topic, but Syncthing can drain a phone battery pretty quickly if you’re on the move across areas with weak signal (e.g. the countryside), which will likely force it to disconnect and reconnect constantly.

I personally also sync on (W)LAN only.

---

<div class="post-metadata">

### Author: ![Thilo](https://forum.syncthing.net/user_avatar/forum.syncthing.net/thilo/32/10089_2.png) [@Thilo](https://forum.syncthing.net/u/Thilo)
#### Post date: [September 11, 2021, 6:07pm UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/13 "2021-09-11T18:07:23Z")

</div>

Establishing a server that is always on might be one of the solutions.

---

<div class="post-metadata">

### Author: ![ProactiveServices](https://forum.syncthing.net/user_avatar/forum.syncthing.net/proactiveservices/32/2386_2.png) [@ProactiveServices](https://forum.syncthing.net/u/ProactiveServices)
#### Post date: [September 12, 2021, 4:31am UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/14 "2021-09-12T04:31:11Z")

</div>

This is not my experience.

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [September 12, 2021, 6:21pm UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/15 "2021-09-12T18:21:05Z")

</div>

KeePassXC can merge: Menu Database \> Merge from Database. I need to do that every now and again if I do changes on the phone and pc at the same time ( (had the phone running only when charging, now all the time - no battery issues for me) .

---

<div class="post-metadata">

### Author: ![francois072](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/f/838e76/32.png) [@francois072](https://forum.syncthing.net/u/francois072)
#### Post date: [September 13, 2021, 5:05pm UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/16 "2021-09-13T17:05:45Z")

</div>

I tried using keeshare and it should work, but unfortunately the Android clients don’t support keeshare. I’m using keepass2android. A solution that requires zero user intervention would be nice.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [October 13, 2021, 5:06pm UTC](https://forum.syncthing.net/t/syncing-keepassxc-database/17330/17 "2021-10-13T17:06:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
