pastebin - collaborative debugging tool
phoenix.kpaste.net RSS


Kindle Backup Script Part 2
Posted by Phoenix on Mon 13th May 2013 04:52
raw | new post
modification of post by Phoenix (view diff)

  1. #!/bin/bash
  2. function receiving(){
  3.   read -p "Receiving partition $1"
  4. }
  5.  
  6. DATE=`date +%F`
  7.  
  8. mkdir $DATE
  9. cd $DATE
  10.  
  11. receiving 1
  12. nc -l 31337|pv|dd of=mmcblk0p1.img
  13.  
  14. echo
  15.  
  16. echo "Skipping partition 2"
  17.  
  18. echo
  19.  
  20. receiving 3
  21. nc -l 31337|pv|dd of=mmcblk0p3.img
  22.  
  23. echo
  24.  
  25. receiving 4
  26. nc -l 31337|pv|dd of=mmcblk0p4.img
  27.  
  28. echo
  29.  
  30. echo "Receiving MD5s"
  31. nc -l 31337 > md5s.md5
  32.  
  33. echo
  34.  
  35. echo "Checking MD5s"
  36.  
  37. /cygdrive/c/Program\ Files\ \(x86\)/cfv/cfv.exe --progress=yes
  38.  
  39. echo "Finished"

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at