![]() |
#16 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,137
Karma: 3592801
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
Let me describe the logic of KOReader, it'd help to setup syncthing or other program.
On opening a book KOReader checks for the file <book-filename>.annotations.lua in the book sdr fodler (by default) or other folder chosen by a user. If the file exists, KOReader checks the device_id from the file. If it is the same as the device id, it does nothing. If not, it imports annotations from the file and deletes the file. The annotations file can be created manually froom the Bookmark list or by an assigned gesture, or automatically (on book closing). |
![]() |
![]() |
![]() |
#17 |
Member
![]() Posts: 10
Karma: 10
Join Date: Mar 2025
Device: Inkpalm, Supernote
|
There is an explanation here: https://docs.syncthing.net/users/syncing.html
I think I misinterpreted the conflict files. Based on this it encounters two annotation files, takes the most recent one, and creates a conflict file for the other one. I think this probably is the default behaviour for all file based syncing tools. It also means that in this case it works, just generates a conflict file each time. |
![]() |
![]() |
![]() |
#18 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 553
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
I tried but can't get the lua imported to the second device.
Process:
Am I doing it wrong? |
![]() |
![]() |
![]() |
#19 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,137
Karma: 3592801
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
The book on both devices has the same filename.
Device A export folder is synced with a Dropbox folder, on syncing the anno export file is uploaded to Dropbox. Device B export folder is synced with (the same) Dropbox folder, on syncing the anno export file is downloaded to Device B. On opening the book on Device B it gets annotations from the downloaded anno export file. |
![]() |
![]() |
![]() |
#20 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,137
Karma: 3592801
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
If the export folder is set to default (book sdr folder), every sdr folder must be synced with Dropbox.
You can choose one common export folder for all books and sync it with Dropbox. |
![]() |
![]() |
![]() |
#21 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 553
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Quote:
I have synced only the book file + the annotations.lua (meaning filename is exactly the same). And if sdr folders are synced, the progress is also synced? Then the Progress Sync plug-in can now be inactive? Sent from my Pixel 7 Pro using Tapatalk Last edited by nqk; 03-13-2025 at 06:05 AM. |
|
![]() |
![]() |
![]() |
#22 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,137
Karma: 3592801
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
No, sdr folders are not required, annotations.lua only.
On Device B it should be saved to the correct folder (sdr by default). You can check for the file existance before book opening (after opening it is deleted). Progress Sync plugin syncs the progress only. Syncing sdr folders syncs book layout as well, and it can be different on devices. |
![]() |
![]() |
![]() |
#23 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 553
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Currently from my Pocketbook Verse Pro, when sync up to Dropbox, I could see several .annotations (1).lua, and (2).lua
Probably because the built-in Dropbox app handles the file conflicts that way? And I am not sure Koreader deletes the lua file after update. Hard to check.... Sent from my Pixel 7 Pro using Tapatalk |
![]() |
![]() |
![]() |
#24 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,137
Karma: 3592801
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
I don't know if there is an option to overwrite older file with the newer one, and not to keep all.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I get the Cover Grid layout while viewing books on my device? | droopy | Library Management | 3 | 09-09-2020 01:14 PM |
Best way to have mobile devices synced to PC | Giuseppe Chillem | Android Devices | 0 | 09-15-2019 06:02 PM |
FR: Folder device and other devices at the same time | loviedovie | Calibre | 3 | 06-18-2016 09:59 PM |
Need a device/app that will keep books synced between Phone and E-Reader | josh05magnum | Which one should I buy? | 19 | 05-29-2014 06:09 PM |
Add tag when book is synced to device | Stampercam | Calibre | 4 | 10-09-2011 03:49 AM |