- #!/bin/bash
- function sending (){
- echo "Sending partition $1"
- sleep 5
- }
- sending 1
- dd if=/dev/mmcblk0p1|nc 192.168.15.201 31337
- echo
- echo "Skipping partition 2"
- echo
- sending 3
- dd if=/dev/mmcblk0p3|nc 192.168.15.201 31337
- echo
- sending 4
- dd if=/dev/mmcblk0p4|nc 192.168.15.201 31337
- echo
- echo "Creating MD5s"
- md5sum /dev/mmcblk0p1 | sed 's:/dev/::; s/$/.img/' > /tmp/backupmd5s
- md5sum /dev/mmcblk0p3 | sed 's:/dev/::; s/$/.img/' >> /tmp/backupmd5s
- md5sum /dev/mmcblk0p4 | sed 's:/dev/::; s/$/.img/' >> /tmp/backupmd5s
- echo
- echo "Sending MD5s"
- sleep 5
- cat /tmp/backupmd5s|nc 192.168.15.201 31337
- echo
- echo "Finished"
Kindle Backup Script Part 1
Posted by Phoenix on Mon 13th May 2013 04:27
raw | new post
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.