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:
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:
old post contents:
.
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:
- 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
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:
old post contents:
Spoiler:
.