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, or when the USB cable is attached, 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:
- attach your device to a PC
- go to .kobo directory
- rename KoboReader.sqlite as you want
- extract the archive KoboReader.sqlite.bz2 using an archive manager, like 7-Zip
-------------------------------------------------------------------------------
Currently the script has some limitations:
- I need a way to detected wifi connection
- I want to start the backup immediately if Kobo is sleeping, so I need a way to check sleeping status
I hope it will help us to save some time. Thanks to
tshering for sqlite, LED control and USB flashing detection, and
yoq for runonce trick.