openreads icon indicating copy to clipboard operation
openreads copied to clipboard

[FEATURE_REQUEST] Simple local sync

Open vnckppl opened this issue 1 year ago • 4 comments
trafficstars

Is your feature request related to a problem? Please describe. Several feature requests are about automated syncing. Most request propose syncing with a server. Perhaps, we could use another way of syncing the openreads database that bypasses the necesity of a central server.

Describe the solution you'd like We could use syncthing to sync the openreads database between devices. From the Syncthing website:

Syncthing is a continuous file synchronization program. It synchronizes files between two or more computers in real time, safely protected from prying eyes.

So, it does not require a central server, but syncs folders between two devices (P2P). Syncthing is available for Linux, Mac, Windows, and Android. I use it for example to sync my epubs. The reader I use (Book Reader) stores meta-data files next to the epub files for keeping track of progress. Syncthing syncs these meta-data files, allowing me to keep track of my reading progress on multiple devices.

I am not sure how the openreads (binary?) database is stored, but allowing to store the database in a user defined location would allow syncing of this database to multiple devices.

vnckppl avatar Feb 13 '24 00:02 vnckppl

Agreed! ✨ This would be amazing, I use this for multiple apps/files as well and it'd make so much sense, honestly!

MikaelaLovett avatar Feb 15 '24 22:02 MikaelaLovett

That sounds useful, so the goal is to have the database or it's mirror in user storage so it's accessible by Syncthing?

mateusz-bak avatar Feb 16 '24 01:02 mateusz-bak

Yes exactly. It would then of course also require that the database is read entirely during startup instead of using a cached version. This would be necessary to ensure that any newly synced changes are reflected in the program.

vnckppl avatar Feb 19 '24 23:02 vnckppl