![]() |
#1 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Kindle backup
For touch screen Kindles, create a complete system's backup.
This does not include the USB storage area, which the user can backup over the USB cable to their PC. Install: Un-archive the attached compressed archive to the top level of visible USB storage. Be sure your archive handling tool is set to re-create the directory structure. There will be two directories (folders) added to the top of visible USB storage; 'unjail' and 'esys'. The 'unjail' directory will contain the mkbackup.sh script. The 'esys' directory (tree) will contain three of the GNU CoreUtils applications required. 'unjail' because this script is part of the new serial jail breaking procedure. 'esys' because that is our long established ARMel add-in tree. No KUAL button (yet). The script has to be run from the command line for this version. The progress report given when run from the command line: Spoiler:
That script will create a directory (folder) in the top level of USB storage 'backups'. The contents will be similar to this: Spoiler:
The manual, command line, command to create a compressed archive: Spoiler:
Connect the Kindle to your PC with the USB cable (after turning off USBnetworking if your using the cable for that). From the top level of visible USB storage, copy the backups.tar.gz file to somewhere safe. You can then delete from the Kindle both the archive file you just moved and the Kindle:\backups directory (folder) tree. Changes:
Last edited by knc1; 08-21-2017 at 06:42 PM. |
![]() |
![]() |
![]() |
#2 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
And the backup script is ready.
Operation from the command line only for now. Maybe a KUAL button for it in the near future (unless I lose interest in this project). |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
backup-0.3
Now can extract the larger kernels of the early touch screen devices. Tested on: KT running 5.3.7.3 firmware (current as of this writing). Tested on: PW3-4GB running 5.8.7.0.1 firmware (most recent JB'able version). |
![]() |
![]() |
![]() |
#4 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,013
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Very useful
![]() SSH log when run from the command line on my PW3 v5.8.7: Spoiler:
|
![]() |
![]() |
![]() |
#5 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
You are welcome.
There are a few more changes to come, nothing really major. A KUAL button, copying the version files so you know what firmware versions the file represent . . . . Just finishing touches. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Connoisseur
![]() Posts: 72
Karma: 10
Join Date: Jun 2016
Device: PW3
|
Excellent and easy backup
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
#8 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
knc1,
I don't have enough free space on my PW1... ![]() So, any way to do this directly from/to a PC, via ssh? |
![]() |
![]() |
![]() |
#9 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I presume :: You have USBnetworking package installed. And a way to connect to the Kindle while messing around with the ssh client packages installed there. While the main business of that package is putting an ssh server on the Kindle, it also includes some ssh related client applications. sshfs for one. You would also need the sshfs server (part of the openssh set of programs) installed on your PC. If you are running Linux or MacOSx, they are probably there as part of the default install. If you are running Windows, you will have to install them. (Which might be difficult, because that would effectively give you more than a single "seat" on the common, single-seat, Windows. And MicroSoft discourages anyone having more than one seat on Windows without paying for it.) That requirement met and - Then use sshfs client on the Kindle to mount a directory exported from the PC somewhere under /mnt/us/* Now that part, I don't recall anyone playing around with that other than NiLuJe, geekmaster and twobob. So searching the forum for guidance might give few results. With that part working - Then I could modify the script to accept an argument giving an alternate path to the current /mnt/us/documents. = = = = I don't recall if we have a working NFS Kindle client, or a working CIFS (Samba) Kindle client. I do recall there was some work done on them by twobob. All Windows versions support CIFS (a.k.a: Windows file sharing). And MS has an NFS server for Windows as part of, or an add-in to, their Unix support stuff. There was also some work done on getting NBD client working on the Kindles. That one I don't recall the status of. But give up all hope of Windows ever supporting NBD servers. And then there is USB/IP - Which I don't recall anyone working on that one. It tunnels USB i/o messages over any IP based network to/from a remote USB device. I think that open WRT was the leader in that project. Last edited by knc1; 09-27-2017 at 01:39 PM. |
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Oct 2018
Device: Kindle PW3
|
Thank you for a great tool !!!
|
![]() |
![]() |
![]() |
#11 |
Addict
![]() Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
|
did i do something stupid? probably:
dd: invalid number 'LANG='en_US.utf8'' mkimage: Can't read /mnt/us/backups: No such device dd: invalid number 'LC_ALL='en_US.utf8'' mkimage: Can't read /mnt/us/backups: No such device dd: invalid number 'LOGNAME='root'' mkimage: Can't read /mnt/us/backups: No such device dd: invalid number 'OLDPWD='/var/tmp/root'' mkimage: Can't read /mnt/us/backups: No such device dd: invalid number 'OPTIND='1'' mkimage: Can't read /mnt/us/backups: No such device dd: invalid number 'PAGER='/bin/more' mkimage: Can't read /mnt/us/backups: No such device dd: invalid number 'PATH='/mnt/us/esys/bin:/mnt/us/esys/sbin:/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin'' mkimage: Can't read /mnt/us/backups: No such device dd: invalid number 'PPID='888'' mkimage: Can't read /mnt/us/backups: No such device dd: invalid number 'PS1='[u@h' mkimage: Can't open /mnt/us/backups': No such file or directory dd: invalid number 'PS2='>' mkimage: Can't read /mnt/us/backups: No such device dd: invalid number 'PS4='+' mkimage: Can't read /mnt/us/backups: No such device dd: invalid number 'PWD='/mnt/us'' mkimage: Can't read /mnt/us/backups: No such device dd: invalid number 'SHELL='/bin/sh'' mkimage: Can't read /mnt/us/backups: No such device # and a bunch more of these these. whats' weird is i do have a /mnt/us/backups; and ran mntroot rw after ssh'ing in Last edited by arooni; 01-29-2019 at 05:46 PM. |
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,629
Karma: 102020753
Join Date: Apr 2011
Device: pb360
|
What command did you type?
|
![]() |
![]() |
![]() |
#13 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29
Karma: 19952
Join Date: Sep 2011
Location: USA & UK
Device: down to just a PW4
|
Quote:
The script doesn't check that the kernel blocks exist so the getSize function parses your shell environment. ![]() |
|
![]() |
![]() |
![]() |
#14 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Yes, it makes a difference, and those messages look like you ssh'd in over Wifi while the USB cable was still connected, holding the user storage partition externally exported (making it (and /mnt/us/*everything*) unreachable). Note the 'root' in the mntroot command. That means the 'root' file system. But that also is limited to a single file system, the permissions do not cross file system boundaries. Translation: /mnt/us is on a different partition / backing store / file system than the / file system. They are not even the same type of file system (ext3 vs fat32). PS: Read note posted above - this utility was not intended to work with the 'Androidized' file structures used by the PW4 and KOA2. Note that this add-in have been posted for over 18 months with only 200 downloads by the millions who own Kindles. So updating this unused utility for the two newest models is really far, far, far down my list of things to waste my life on. |
|
![]() |
![]() |
![]() |
#15 | |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9
Karma: 10000
Join Date: Feb 2019
Device: Kindle 4 NT
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Backup Kindle | crescere | Amazon Kindle | 23 | 07-31-2014 08:47 AM |
Which files to backup from Kindle Paperwhite? | Julius Caesar | Amazon Kindle | 9 | 08-30-2013 10:51 PM |
Kindle 3.3 - Backup | kimkindle | Kindle Developer's Corner | 1 | 02-17-2012 07:25 AM |
Kindle 3.3 - Backup | kimkindle | Amazon Kindle | 1 | 02-09-2012 07:52 AM |
how to backup Kindle books before re-registering | Lago | Amazon Kindle | 9 | 05-21-2010 11:48 AM |