Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
45
rated 0 times [  45] [ 0]  / answers: 1 / hits: 74183  / 1 Year ago, mon, december 5, 2022, 4:50:14

How can I connect to my android device to rsync music (or other stuff)?


More From » android

 Answers
1

Using sshelper



I found this solution:




  • Install sshelper on the device (no rooted device needed, available from google play market)

  • In my WLAN the device is called "android". But you can use the IP, if you can't give the device a hostname.



Edit local ssh-config, to alter the default port for host "android"



.ssh/config
host android
Port 2222



  • Start sshelper on device.

  • Connect android device to you WLAN.




rsync -rvlc Music android:SDCardLink/




Update
I prefere -rvlc to -a since you get a lot of warnings since setting permissions and time-stamps does not work. The option -c makes the second sync much faster.



I prefere -rvl --size-only to -a since you get a lot of warnings since setting permissions and time-stamps does not work. The option --size-only makes the second sync much faster.



Unfortunately it needs some time for music apps to see the new files. Restarting the device helps.


[#29521] Monday, December 5, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bunsistent

Total Points: 198
Total Questions: 108
Total Answers: 121

Location: Monaco
Member since Sun, Jan 16, 2022
2 Years ago
;