How KOReader syncs reading progress
KOReader keeps your place across devices with a plugin called Progress sync. Each device logs in to the same account on a sync server. When you push, the device sends a position for the book you're reading; when you pull, it fetches the position that another device left there. The server knows a book only by an ID that the device works out from the file, not by its title, so two devices sync only if they agree that they hold the same book. Every fix that the KOReader user guide gives for a failed sync is about that last part.
Setting it up
The plugin lives in the top menu, under the tools icon, as Progress sync (section 9.6 of the guide, “Synchronizing Progress”). On the first device, connect to a network, open “Register/Login”, type a user name and a password, and press Register. That makes the account on the KOReader sync server. On each other device, open the same menu, type the same user name and password, and press Login.
The same menu has “Device hostname”, which gives each device a name you'll recognise.
When progress moves
Turn on “Automatically keep documents in sync” and KOReader sends your progress whenever you close a book or suspend or resume the device. The guide adds one condition: a network connection has to be available at that moment. If the Wi-Fi is off when you put the e-reader to sleep, nothing goes up.
You can also do it by hand. The menu has “Push progress from this device now” and “Pull progress from other devices now”. Both are available as actions too, so you can put them on a gesture in the Gesture Manager, in a Quick Menu, or in a profile that runs on its own under conditions you set. The reader's gesture list also has actions to set and to toggle auto progress sync.
How two devices agree on a book
This is the setting that decides whether sync works at all: “Document matching method”, in the same menu. It has two choices.
| Method | Two files count as the same book when | Breaks when |
|---|---|---|
| Binary matching (the default) | a partial MD5 hash of their content is the same | anything changes the bytes of one copy |
| Filename matching | their file names, extension included, are the same | the copies have different names |
Binary matching is strict. The two files have to be identical. The guide's own example is calibre: it says calibre writes its own information, such as viewer progress, into the file, which changes the hash, so a copy that went through calibre and one that didn't are two different books to the server. For a library that calibre or a similar program manages, the guide suggests Filename matching instead.
The troubleshooting part of the guide gives a second case, and this one is KOReader's own. If “Write highlights into PDF” is on, saving a highlight changes the PDF, so the hash changes and the sync fails. The suggested fix is the same: switch to Filename matching.
Filename matching has its own trap, which follows from the rule itself. Middlemarch.epub on one device and George Eliot - Middlemarch.epub on the other are two books to the server, however identical the text inside.
What the server keeps
Less than you might expect. The guide says the server stores no file names and no file content. For each book it holds three things: your user name, an ID for the document (with Binary matching, the same partial MD5 hash), and the furthest reading position for that document. Your password isn't stored either, only an MD5 hash of it, and the device talks to the server over HTTPS.
Note the word “furthest”. The guide describes the server as keeping the furthest position, not every position, and the list has nothing else about the book: highlights and notes don't travel this way.
Running your own server
You don't have to use the KOReader project's server. The guide names three options: the official KOReader sync server, which is open source and which you can host yourself; the self-hosted alternatives on a list that the guide links; and Calibre-Web, which has a KOReader sync server built in. Whichever you choose, every device has to point at the same one.
KOReader and a library on a Mac
Progress sync is between KOReader devices. If KOReader gets its books from Readwyn's OPDS catalogue, the catalogue gives it the books, their covers, and their details, but no progress, so where you are in a book is still KOReader's own business. What is KOReader? covers the rest of what the app does.