![]() |
#1 |
Diligent dilettante
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,644
Karma: 52424118
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
|
Restoring a backup?
Yesterday I made the mistake of connecting my Sage to Calibre after awakening it from sleep, as opposed to from powered off. The inevitable DB corruption "error communcating with device" was the result. I have a backup generated by Kobo Utilities, do I just extract the zip into the .kobo folder?
Last edited by Uncle Robin; 02-25-2024 at 02:59 AM. |
![]() |
![]() |
![]() |
#2 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,210
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Diligent dilettante
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,644
Karma: 52424118
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
|
THe previous reply did not answer my question, so I'll ask again
do I just extract the zip into the .kobo folder? |
![]() |
![]() |
![]() |
#4 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,210
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Look in inside the ZIP file. There is a directory that you do not extract to the .kobo directory. You only really need to extract KoboReader.sqlite (as that is the database) unless you have a need for any of the other files. Last edited by JSWolf; 02-25-2024 at 02:11 PM. |
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Feb 2024
Location: Chicago
Device: Kindle 11th gen.
|
Just curious is there any special or device specific steps you need to do in order to connect your device to Calibre and not break it?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,913
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,938
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Since I removed storing my entire library on my Clara HD (was an experiment after I upgraded it's internal storage to 128GB) and now have only ~800 books on it, it hasn't shown a database corruption. As far as I can tell, if I telnet to my Sage and I see the <database-name>.sqlite-wal and <database-name>.sqlite-shm (write ahead log and shared memory) files, the database has not been closed and I will get the error. The reboot forces the database close so no issues. |
|
![]() |
![]() |
![]() |
#8 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,210
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 | |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Feb 2024
Location: Chicago
Device: Kindle 11th gen.
|
Quote:
wow, that's entire new world if you can telnet to your device. What you can do over it? is it a regular bash/*nix shell? |
|
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Feb 2024
Location: Chicago
Device: Kindle 11th gen.
|
|
![]() |
![]() |
![]() |
#11 | ||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,938
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
Code:
menu_item : main : Telnet : cmd_spawn : quiet: /bin/mount -t devpts | /bin/grep -q /dev/pts || { /bin/mkdir -p /dev/pts && /bin/mount -t devpts devpts /dev/pts; } chain_success : cmd_spawn : quiet: /usr/bin/pkill -f "^/usr/bin/tcpsvd -E 0.0.0.0 1023" || true && exec /usr/bin/tcpsvd -E 0.0.0.0 1023 /usr/sbin/telnetd -i -l /bin/login chain_success : dbg_toast : Started Telnet server on port 1023. |
||
![]() |
![]() |
![]() |
#12 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,938
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
No, once a Kobo is in USBMS mode, the USB connection has sole access to the storage. Just don't try running calibre and other apps that will access your Kobo on your computer at the same time. I.e. while calibre is connected to the ereader, don't try using another utility to work on the database at the same time. The results can be interesting for certain unpleasant values of interesting.
|
![]() |
![]() |
![]() |
#13 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,938
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
A script (quick and dirty would be using if [ -f /mnt/onboard/.kobo/<sqlite-wal filename> ] to check for the existence of a write ahead logging file ( either BookReader.sqlite-wal or KoboReader.sqlite-wal ) and triggering the reboot if either one exists) could be written and run from NickelMenu) but creating that file will be left as an exercise for the student. Alternately, you could run entire command from NickelMenu. See the Toggle Screensave command for an example using test to detect a file's existence. Last edited by DNSB; 02-28-2024 at 08:24 PM. |
|
![]() |
![]() |
![]() |
#14 | ||
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Feb 2024
Location: Chicago
Device: Kindle 11th gen.
|
Quote:
So it gives you ability to access reader's fs? I think for Kindle you need to do a jailbreak for that. Quote:
|
||
![]() |
![]() |
![]() |
#15 |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Feb 2024
Location: Chicago
Device: Kindle 11th gen.
|
p.s. From what I see how Calibre is doing books work on my Kindle device - I have a feeling that it just copying stuff over to internal memory, after device is removed from system - its OS will do a recursive scan for new files on mounted storage and updates whatever mysql, sqlite, redis, etc. so since Calibre isn't touch db directly - technically you'll never have the situation described here. But I might be wrong of course.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Restoring a Moon Reader backup | Crazy4moon | Android Devices | 1 | 02-20-2023 01:55 AM |
Clara HD Restoring backup to second device fails | xembu | Kobo Developer's Corner | 2 | 07-31-2022 07:23 AM |
Restoring an older backup | Garyg@SA | Calibre | 16 | 04-01-2020 05:12 AM |
Backup and restoring Kindle3 | sylviebi | Amazon Kindle | 2 | 08-22-2011 03:12 PM |