• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

running rsync manually

and4me

Lurker
Hello,

I am trying to run rsync from '/data/data/eu.kowalczuk.rsync4android/files' from a script and smanager and getting permission denied (rsync is rwx), any ideas how I can run rsync with custom settings ? (android 4.3)

The reason is rsync4android wants to connect only via a keyfile (I can only connect to ssh with user/pass), the rsync account has a different user/pass and needs to be accessed via port forwarding, so rsync4android is not doing it for me.
I have ssh with 1 port forwarding tunnel working so all I need now is to run rsync on 127.0.0.1 with additional user/pass but without ssh stuff.
 
Example script:
#!/system/bin/sh
/data/data/eu.kowalczuk.rsync4android/files/rsync -rvt --no-whole-file --delete-after --fuzzy /storage/sdcard0 rsync://myphone@127.0.0.1:1773/myphone

ssh running on 1773 port forwarding to your ssh server.
 
Back
Top Bottom