Quantcast
Channel: MobileRead Forums - Kobo Reader
Viewing all articles
Browse latest Browse all 11140

DB Auto-Backup Tool for Kobo

$
0
0
Since I got the database corrupted very much times, I decided to do this little auto-backup tool.

It simply backups the db every 20 minutes in a hidden place. If the database is corrupted, LED light starts to blink and you can find the backup in the .kobo folder.

How to install it: Check the instructions here.
How to repair your db: if you want to restore the backup, you have to follow these steps very carefully:
  1. attach your device to a PC
  2. go to .kobo directory
  3. rename KoboReader.sqlite as you want
  4. extract the archive KoboReader.sqlite.bz2 using an archive manager, like 7-Zip

I hope it will help us to save some time. Thanks to tshering for sqlite, LED control and USB detection, and yoq for runonce trick.


For devs only:
Spoiler:
Currently the script has some limitations:
  1. I need a better way to detected when the device is connected via USB (lsusb or ioctl)

old post contents:
Spoiler:
backup file is not in the flash partition, but in /var/bak/. This is the reason.
-------------------------------------------------------------------------------

no message is displayed if db is corrupted. I'm trying to use the LED light. I also know that I can display images using pickel showpic or pickel wait-for-hit (no pickel legendary?) but it does not work: I tried this while SSH connected, without any success:
PHP Code:

killall -STOP nickel
zcat 
/etc/images/kraken-factory-reset.raw.gz | /usr/local/Kobo/pickel showpic 

PHP Code:

zcat /etc/images/error_kernel.raw.gz | /usr/local/Kobo/pickel wait-for-hit 0 0 100 100 0 100 100 100 


.

Attached Files
File Type: zip [Kobo] DB Auto-Backup Tool - v1.0.zip (259.4 KB)

Viewing all articles
Browse latest Browse all 11140

Trending Articles