Howto setup rsync

ravage382

New Member
Joined
Dec 16, 2009
Messages
12
Reaction score
0
Basic instructions were taken from kevdogs ssh post. Thanks kevdog.

#1 - Phone has been rooted: - Search forums if unsure how to do this
#2 - Busybox has been installed - Again search forums for method
#3 - ADB (Android Debug Bridge) is installed on host computer - (Step isn't absolutely necessary if a program such as Android Terminal Emulator: androidterm - Project Hosting on Google Code is installed, however I personally find it a lot easier to install and debug using adb).

Process:

Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
#1 - Download rsync from here
#2 - Unzip the executable rsync to /sdcard/
#3 - mv /sdcard/rsync /system/xbin/rsync

Code:
mount -o remount,ro -t yaffs2 /dev/block/mtdblock4 /system
You now have a working rsync client. Unfortunately, rsync over ssh is not yet available. The next goal is to port openssh so this is possible.
 
Last edited:

kprojects

Member
Joined
Dec 19, 2009
Messages
43
Reaction score
1
Great info - more things you'd never think you'd be able to do with your phone..
 

jasonslogan143

New Member
Joined
Jan 16, 2012
Messages
1
Reaction score
0
got it working well on bionic

My phone is rooted.

I had to copy a file containing my password to the same folder as the rsync bin file. I also had to chmod 600 the file.

So copy rsync to /system/xbin and, in my case, rsyncd_passwd to /system/xbin

Then chmod 600 /system/xbin/rsyncd_passwd

then remount to ro.

Also another note is I couldn't use the archive "-a" switch. I could do this:

rsync -rv --delete --password-file=/system/xbin/rsyncd_passwd "/mnt/" "myname@myhouse.com::/"

On a side note, this is not encrypted. Rsync on port 873 defaults to just compression. This doesn't rsync over ssh yet. Someone has to have openssh for android first or something smaller.

AGAIN this is what I had to do to make this work. I am still working on getting a cron or some other scheduler to run this @daily for me. This is great! I have linux functionality on MY FREAKIN PHONE!
 
Top