![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,698
Karma: 16542228
Join Date: Feb 2010
Location: Pennsylvania
Device: Huawei MediaPad M5, LG V30, Boyue T80S, Nexus 7 LTE, K3 3G, Fire HD8
|
Save backups to SD
How do I save my settings and DB backups to my SD card? I have SD cards on Android 4.4+ checked, and my books are saved to SD.
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You save them to main memory then use a file manager to move them to the SD card. Why? Trying to work with Kitkat+ SD card rules was more than I wanted to do.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I have changed CC backup and restore to allow navigation up from internal memory directory and then down to wherever you want if either a) the Android version is less than Kitkat or b) the advanced SD card option is checked.
Two notes: 1) I make no attempt to verify that the path makes sense. If your device will let you store the file in the root directory then CC will do it. I hope that Android will tell CC if an attempt is made to write to a read-only directory or file, but I am not sure this will always happen. 2) I cannot fully test these changes because I do not have a kitkat-or-later device with an SD card. @Purple Lady: if you want I can send you a new beta APK with these changes. In this case send me a PM with the email address you want me to use. Alternatively you can wait until I release the next beta, probably in a week or two. |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,627
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
@chaley, if you want I can test that, as I have an Android device wit Android 4.4.2
|
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
![]() There are two variants to the test. Both require kitkat or higher and the existence of an SD card (which I don't have). The first: you have rooted your device, disabled the Kitkat SD card protections, and checked the CC advanced SD card option found in CC's Other Settings section. In this case you should be able to write the backup file anywhere on the SD card. The second: you check the box in CC but haven't disabled SD card protection. In this case CC will let you navigate around the SD card but it should fail to write the files except (perhaps) in the magic /Android/data/com.multpie.calibreandroid directory. If after reading the above you are willing to go ahead then PM me the right email address where I should send the APK. I have the one you gave me for the beta program but I am not sure that is the one you prefer. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,627
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
I have the second one option (I'm not a fan of rooting), and I have my books in my SD, so I can ckeck it. And I PM the email to you now.
|
![]() |
![]() |
![]() |
#7 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Taking the liberty of responding to an email here.
![]() Quote:
Given that Android+CC gives the write error I think I will remove the restrictions on when a user can navigate "up" and then down to the SD card. That way you will not need to check the "Advanced" option to save a backup to the app-specific directory on the SD card. I probably need to add something to the FAQ. Quote:
|
||
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,627
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
I hope it has been helpful, and I'm glad to have the apk in my phone as I prefer to save the backup at the SD too (changing books from internal memory to SD was the first thing I did when I got the phone).
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,698
Karma: 16542228
Join Date: Feb 2010
Location: Pennsylvania
Device: Huawei MediaPad M5, LG V30, Boyue T80S, Nexus 7 LTE, K3 3G, Fire HD8
|
I tested both backup and restore using SD card and it worked fine, thanks. This was without the SD cards option checked in settings.
I also tried to save the backup to the root of my device and it failed - it asked if the file was read only. |
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Given the positive feedback I think I will release a new beta with these changes. It will have the same version ID as the current beta, V4.2.1, but will have the internal ID bumped up to 182. Both of these values are visible in CC's About screen. |
|
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,698
Karma: 16542228
Join Date: Feb 2010
Location: Pennsylvania
Device: Huawei MediaPad M5, LG V30, Boyue T80S, Nexus 7 LTE, K3 3G, Fire HD8
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with a disaster and backups! | SusieQ100 | Calibre | 24 | 08-09-2015 03:43 PM |
A lesson on the importance of backups... | HarryT | General Discussions | 114 | 02-01-2015 09:53 AM |
Upgrading and backups - what to save? | manawydan | Library Management | 3 | 11-10-2013 02:22 PM |
How many backups do you have? | Sydney's Mom | General Discussions | 23 | 04-03-2010 11:53 PM |
CF card or iLiad backups? | nekokami | iRex | 12 | 10-16-2007 09:25 AM |