阅读背景:

rsync 同步

来源:互联网 
两台android 设备 进行rsync 同步 1。编译 rsync 源码 sudo apt-get install gcc-arm-linux-gnueabi wget https://rsync.samba.org/ftp/rsync/rsync-3.1.0.tar.gz tar -zxv -f rsync-3.1.0.tar.gz cd rsync-3.1.0 ./configure --host=arm-linux-gnueabi CFLAGS="-static" make 2. 将生成的rsync 复制到/system/xin下 这个可以根据需求 到不同的目录下。 配置文件 rsyncd.conf # Distributed under the terms ofthe GNU General Public License v2 # Minimal configuration file for rsyncdaemon # See rsync(1) and rsyncd.conf(5) man pagesfor help # This line is required by the/etc/init.d/rsyncd script pid file = /data/shareData/rsyncd.pid port = 55873 uid = 0 gid = 0 secrets file = /etc/rsyncd/rsyncd.secrets hosts allow = * use chroot = yes read only = no max connections = 5 #This will give you a separate log file log file = /data/shareData/rsync.log log format = %t %a %m %f %b syslog facility = local3 timeout = 300 [test] path = /data/shareData lock file = rsyncd.lock #list=yes hosts allow = * ignore errors secrets file = /etc/rsyncd/rsyncd.secrets auth users = root 两台android 设备 进行rsync 同步 1。编译 rsync 源码 sudo apt-get


你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: