I need a command line tool/script that can backup a list of partitions from Android to pc (using adb connection).
And restore them.
Args:
bkp_tool -b <partition-list> <directory on pc>
bkp_tool -r <directory on pc>
Example:
bkp_tool boot,recovery,cache,nvdata ./backup/
This will backup partitions:
boot
recovery
cache
nvdata
into ./backup/boot.img, ./backup/recovery.img ... etc..
from /dev/block/????