Android Backup
Backup of the shared storage data from Android device.
Backup of Android Device shared storage with rsync
In order to have a reliable backup of all the Data on your shared Storage on an Android Device
On Android Device
To easily start rsync as a server it is recommended to install Termux on your device. If it is your first time running Termux you should update all package sources and installed pakages.
apt update
apt upgrade
address = 127.0.0.1
port = 1873
[root]
path = /
use chroot = false
read only = false
rsync --daemon --no-detach --config=rsyncd.conf --log-file=/proc/self/fd/2
On PC (POSIX)
First check you have the android adb toolkit installed and can access your device with:
adb devices
Your device should be listed their. If it is your first time using adb on this Computer, you should get a question on your device, if you trust the computer.
If your device doesn’t show up, please check if you have developer settings and USB debugging enabled on you device.
adb forward tcp:6010 tcp:1873
rsync -av --progress --stats rsync://localhost:6010/root/sdcard/ .