Advertisement
metalx1000

Backup My Android Web UI

Dec 31st, 2014
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [[ $EUID -ne 0 ]]; then
  4.     sudo $0
  5.     exit
  6. fi
  7. tar="/sdcard/wwwui_`date +%s`.tar"
  8.  
  9. adb shell "rm /sdcard"
  10. adb shell "mkdir /sdcard"
  11. adb shell "mount /dev/block/mmcblk1p1 /sdcard"
  12.  
  13. adb shell "mount /dev/block/mmcblk0p23 /system"
  14.  
  15. adb shell "tar -cf $tar /system/etc/www.conf /system/etc/www"
  16. adb pull $tar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement