![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,345
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I am starting to think seriously about a backup/restore function for CC. I have several questions:
First: what should be backed up? There are three things in CC: the settings, the database, and the books. Settings can be subdivided to general settings, folder settings, and calibre device ID settings. Second: what should be restored? How much granularity is the user given? This is important because some things interact, for example folder settings, the database, and (of course) the books. Third: what is the most probable use? Catastrophic recovery after wiping a device? Recovery after replacing a device? Cloning settings onto a new device while the originating device is still in use? Comments are welcome. Last edited by chaley; 07-26-2014 at 10:51 AM. |
![]() |
![]() |
![]() |
#2 |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Moderator Notice Copied from the wish list thread Wish item for the next release cycle: Would it be possible to add a function to back up and restore the current settings? You have enough of them now that it would be great to have a way to set up a new device easily. I'm not looking to back up the book database, just the other settings. Ideally, you would do this my using the google data backup stuff, but I would be almost as happy with the ability to write out and read in a file. Last edited by chaley; 07-26-2014 at 10:20 AM. |
![]() |
![]() |
![]() |
#3 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,345
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Moderator Notice Copied from the wish list thread Quote:
Quote:
There is also a lot of chatter on the 'net saying that the service is fundamentally unreliable. I don't know the truth of that, but given that backups and restores "magically happen" at unknown points, I can see lots of room for problems. Last edited by chaley; 07-26-2014 at 10:21 AM. |
||
![]() |
![]() |
![]() |
#4 | |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Moderator Notice Copied from the wish list thread Quote:
I wasn't thinking of the backup as strict copy of the internal data structures, but as a set of preference pairs that you could reapply as the file was loaded. I used an app once that generated this in text as an email that could be copy/pasted into the app later. Then the app parsed the text and reset the settings. Having said all this, if you wanted to backup the book database too, I wouldn't mind. Although, then you would also have to backup the books for people who keep them on internal storage. It seems to me that there are two use-cases for this. 1) I lost my device 2) I am upgrading my device. If you are only doing this to support usecase 2, you can just insist that the user upgraded to the current version before starting the migration. For people with books on an external SD card the work would be: 1) Make sure CC is up to date on old device. 2) backup settings and book db to SD card 3) Move SD card to new device 4) Install CC on new device 5) Load settings and book database For people without an SD card, I am not sure what the easiest way to do 2 and 5 would be. Plus you would also have to backup and restore the books for them. For usecase 1, the settings book db and books would need to be stored off device to be of any use, and since (except for the settings) they are already in calibre, would anyone really do that? I think I am back to my first position. Just backup and restore settings. Its small enough to move around, and gives most of the value that people might be looking for. Last edited by chaley; 07-26-2014 at 10:21 AM. |
|
![]() |
![]() |
![]() |
#5 | ||||||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,345
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Attaching the backup to an email message is an interesting idea. I was assuming that the user would put the file into dropbox or drive or what-have-you. CC would create the file wherever the user wants, then the user would use the cloud storage app of choice to get the backup off the phone. Quote:
Quote:
3) I am adding another device while keeping the original (cloning my device). 4) I needed to uninstall CC for some reason and want to restore it. Quote:
Hmmm... I am not sure what happens if I install an SD card on a new machine when an app is using the private SD card app folder. Does the app adopt what is there? Does Android clear it first? My guess is that the folder is adopted or things would go bad very fast every time I swapped cards, but given that the kitcat changes make very little sense (to me) I don't trust my intuition. Quote:
One scheme would be to store the settings and DB backup in the Calibre_Companion folder and use Dropsync (or something like it) to upload that folder to Dropbox whenever a backup is made. That makes a self-consistent set of data. Quote:
Quote:
A question related to backing up the db: should the calibre device ID also be backed up? If you are cloning a device or restoring after uninstall/wipe then restoring the device ID would prevent uploading all the metadata on the first connect after restore. However, if you are copying a device then restoring the device ID would be a bad idea because calibre would not be able to distinguish between them. It is very likely that metadata caching would break. |
||||||||
![]() |
![]() |
![]() |
#6 | ||||||
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Quote:
Good point. I was thinking that the database would be useless without the books for restore purposes, but I forgot that CC tells Calibre which books are "present" on the device. People would have to know thay they needed to resend the books the Calibre said were already there, but the backup/restore function is probably nerdy enough that people who use it will understand the extra work involved. Quote:
Quote:
Quote:
Quote:
Quote:
|
||||||
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Just personal opinions ... I would only make use of a Settings backup (not books/database) and I would only use it to set up a new (or factory reset) device. I've already got slightly different settings for my phone and tablet but cloning backed up settings from the most similar device would do most of the work.
Having said that, when I last set up a new device it wasn't very onerous to have the old and new side by side and work through the settings one by one. Setting up the format folders took the longest but a backup wouldn't have helped, because the new device was KitKat and the old one wasn't, so I would have had to set them manually anyway. |
![]() |
![]() |
![]() |
#8 | |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Quote:
This was probably more true before Chaley spent the last 6 months adding every crazy option his users could think of. It's certainly still doable, but - if it isn't too much effort to implement - would be nice to have. |
|
![]() |
![]() |
![]() |
#9 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
"Settings" backup sounds by far the most useful to me. As the number of settings in CC expands, it becomes increasingly useful. Backing up the books and the DB seems a lot less useful.
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
|
![]() |
![]() |
![]() |
#11 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 144
Karma: 2211224
Join Date: Apr 2012
Location: Ohio
Device: Galaxy Note 4, Galaxy S3, Nexus 7.2
|
I would agree with Kaufman, HarryT and jackie_w. Creating a backup of my app settings would be the most I would use. I don't see a need, for myself anyways, to backup my book files.
An application I use MoneyWise Pro actually provides an option to Create/Restore a Backup of settings/data. I can select to create a local backup which saves to the device internal storage a backup to Dropbox (perhaps an option to allow a user to select a Cloud Storage app). Similarly I can restore a backup from either location. I can select how many backups to keep stored in each location (though I'm not certain that keeping multiple backups might be needed in the case of CC per device). |
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,345
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Thanks to all for the comments. Backing up settings is certainly easier to explain. Backing up the db opens the door to all sorts of misunderstandings, none of which we need.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Backup/restore kepubs on glo? | mattrix | Kobo Reader | 5 | 07-18-2014 02:48 AM |
[Old Thread] Calibre Backup and Restore | Timber | Calibre | 21 | 06-01-2011 07:31 PM |
Backup Restore Application | WzeroMN | Nook Developer's Corner | 6 | 05-20-2011 12:28 AM |
PRS-600 Backup and Restore of Notes | raymondchen625 | Sony Reader | 1 | 12-20-2009 11:49 PM |
iLiad Backup / Restore ? | ce3po | iRex Developer's Corner | 3 | 11-18-2007 05:53 PM |