Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 06-11-2020, 02:59 AM   #1
angeladottavio
Junior Member
angeladottavio began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2020
Device: kobo clara
Import Sqlite

Hi everybody,

I have just bought a kobo clara hd and I am trying to import my annotations from my old kobo glo. I have successfully copied and pasted my old library, but when I paste the koboreader.sqlite something goes wrong. I get an error message (something like "critical error" and your annotations will be deleted) and the reader won't work properly (it won't go to standby, but only off). Morover, when I turn it off I have to reset the account. I've already tried to find the solution in the forum, but didn't manage I have a mac, calibre, and db browser for sqlite
angeladottavio is offline   Reply With Quote
Old 06-11-2020, 10:30 AM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,586
Karma: 168431235
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by angeladottavio View Post
Hi everybody,

I have just bought a kobo clara hd and I am trying to import my annotations from my old kobo glo. I have successfully copied and pasted my old library, but when I paste the koboreader.sqlite something goes wrong. I get an error message (something like "critical error" and your annotations will be deleted) and the reader won't work properly (it won't go to standby, but only off). Morover, when I turn it off I have to reset the account. I've already tried to find the solution in the forum, but didn't manage I have a mac, calibre, and db browser for sqlite
Copying the database is iffy at best. It can work if both ereaders are on the same firmware revision. One of those it may work and if it doesn't, I haven't lost anything. You could try importing your annotations into calibre but that is a one way street.

As for the critical error, that will trigger a factory reset.
DNSB is offline   Reply With Quote
Old 06-11-2020, 11:49 AM   #3
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
If you just want annotations, I suggest you copy your books into the exact same structure on your new Kobo, let them import, copy just the bookmark table to the new database. Note that I've only tested this with kepub books, so I don't know how this will interact with other formats.

If you want reading stats, you can also copy rows from the event table with type 46 from the old DB, and they should work fine (the checksum doesn't include other data except for the row itself).

If you want collections, the best way to do so is to log in to your Kobo account (this will restore them as empty collections), then copy rows from the ShelfContent table with a ContentId starting with file:/// (this also depends on the directory structure remaining the same).

If you want read/unread states, copy the ReadStatus column where set for rows of the content table with a NULL BookId and a ContentId starting with file://.

If you want reading settings (font, last dictionary, search history, etc), copy rows from the content_settings table with a ContentId starting with file://.

If you want My Words, copy the wordlist table.

This covers most of the possible things you can copy from the DB (even between versions) without causing issues.

Last edited by geek1011; 06-11-2020 at 12:06 PM.
geek1011 is offline   Reply With Quote
Old 06-11-2020, 02:49 PM   #4
angeladottavio
Junior Member
angeladottavio began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2020
Device: kobo clara
Quote:
Originally Posted by DNSB View Post
You could try importing your annotations into calibre but that is a one way street.
Thank you for your answer. Could you tell me how to import annotations into calibre and then transfer them to the new Kobo?
angeladottavio is offline   Reply With Quote
Old 06-11-2020, 02:58 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,586
Karma: 168431235
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by DNSB View Post
You could try importing your annotations into calibre but that is a one way street.
Quote:
Originally Posted by angeladottavio View Post
Thank you for your answer. Could you tell me how to import annotations into calibre and then transfer them to the new Kobo?
As I said, it is a one way street. You can import the annotations but there is no mechanism for exporting them back to your Kobo.
DNSB is offline   Reply With Quote
Old 06-15-2020, 05:10 PM   #6
angeladottavio
Junior Member
angeladottavio began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2020
Device: kobo clara
Quote:
Originally Posted by geek1011 View Post
If you just want annotations, I suggest you copy your books into the exact same structure on your new Kobo, let them import, copy just the bookmark table to the new database. Note that I've only tested this with kepub books, so I don't know how this will interact with other formats.
Thank you. I have been trying to figure out how to copy the bookmark table in the new database, but I haven't been able to understand it. Could you explain it, please?
angeladottavio is offline   Reply With Quote
Old 06-15-2020, 06:04 PM   #7
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by angeladottavio View Post
Thank you. I have been trying to figure out how to copy the bookmark table in the new database, but I haven't been able to understand it. Could you explain it, please?
One way would be to use .dump to dump the entire DB (warning: it's large), then copy the insert statements for the bookmark table to the other db.

The other way would be to use the ATTACH command to attach the other database, then copy between them using an INSERT and SELECT in the same statement.

If you're using a GUI, you might be able to copy the rows as-is.
geek1011 is offline   Reply With Quote
Old 06-19-2020, 01:24 PM   #8
angeladottavio
Junior Member
angeladottavio began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2020
Device: kobo clara
Solved!

I have found a workaround with DB Browser for SQLite. First I copied all my books of my old Kobo in the same directory of my new one. Then I opened the bookmarks from the old KoboReader.Sqlite files, exported them in cvs and then imported them in the bookmarks of the new KoboReader.Sqlite. Apparently it works! I am so thrilled because the database thing was really puzzling me. Thanks geek1011 and DNSB for the hints!
angeladottavio is offline   Reply With Quote
Reply

Tags
kobo clara hd


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import Author And Title From Filename & Import Other Tags And Cover From File DazJWood Library Management 25 10-06-2021 10:18 AM
Import on Filename changes mid import due to book error Vortex Calibre 3 12-05-2014 11:49 AM
how to import db sqlite in this project alim2006 Android Developer's Corner 0 05-29-2013 10:59 PM
Import failed Error:404 when attempting to import from Calibre to Stanza dvond Apple Devices 0 05-13-2011 03:00 PM


All times are GMT -4. The time now is 07:21 AM.


MobileRead.com is a privately owned, operated and funded community.