Thread: Aura HD Corrupt database?
View Single Post
Old 01-10-2014, 04:23 AM   #15
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
I got an unwelcome New Year's Eve present: sudden shelf duplication. I'd had the problem before and thought I'd successfully gotten rid of it, but my Glo decided to sync as the ball dropped.

Luckily, I had a backup copy of the database from mid-November, so I didn't lose all my collection data. (Almost all of my books are sideloaded.) I did have to pull up my trusty SQLite editor and work some magic with it* to make all of the shelves go away, and then it was just a matter of restoring the old database and filling in the missing data. Since then, I'm making a point of doing manual backups about once a week.

* The shelf table is easy to find, and editing all the entries to give each shelf a unique name is common sense. The key, though, was setting the "needs to be synced" flag on every last shelf. That way, I could sync the device to change the names in the cloud, then delete the shelves and resync to remove the shelves from the cloud. That made all the shelves go away everywhere, except in the uncorrupted backup database...which I also made sure had all shelves set to be synced. Presto, semi-instant restoration!
Rev. Bob is offline   Reply With Quote