4 ms·
my rsync backup use case over usb and adb (with adb root) start rsync daemon: adb root adb forward tcp:6010 tcp:11873 adb shell "rsync --daemon --p
by paravz 2y ago
my rsync backup use case over usb and adb (with adb root)
start rsync daemon:
adb root
adb forward tcp:6010 tcp:11873
adb shell "rsync --daemon --port 11873 --config=/sdcard/rsyncd.conf &"
rsync:
rsync -rltHDhP --stats --size-only --append-verify --partial --delete rsync://localhost:6010/root/data/data/ /backup/data
cleanup:
adb kill-server
/sdcard/rsyncd.conf for the phone:
address = 127.0.0.1
uid = root
gid = root
[root]
path = /
read only = true