rsync安装 windows下面
cwRsync_3.1.0_Installer.zip客户端
cwRsyncServer_3.1.0_Installer.zip服务器端
windows下需要在ICW目录下面配置好rsync.conf文件
linux下面
rsync-3.0.7.tar.gz客户端和服务器端软件一样
tar -zxvf rsync-3.0.7.tar.gz
进入解压的文件./configure --prefix=安装路径
make
make install
绑定文件
/usr/local/rsync/bin/rsync --daemon --config=/etc/rsyncd.conf
rsyncd.conf服务器端的配置文件(一般在/etc目录下面)
rsync.txt运行命令
inotify_rsync.sh脚本
service xinetd restart 重启restart
cd C:/Program Files/cwRsync/bin
rsync -avz /cygdrive/d/xiao 33.42.121.124::test
rsync -avz 33.42.121.114::test /cygdrive/d/xiao1
service xinetd restart
linux下的命令
rsync -vzrtopg --progress --delete --password-file=/etc/password/rsync.password root@33.42.121.194::test /home/tec
rsync -vzrtopg --progress --delete /home/test/ root@33.42.121.124::test --password-file=/etc/password/rsync.password
rsync.conf内容
uid = nobody
gid = nobody
use chroot = no
max connections = 4
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
log file = /var/log/rsyncd.log
[test]
path = /opt/hanyamedia
#auth users=root
#secrets file=/etc/password/rsync.password
read only = false
以上全部是本人亲自操作的,在windows和linux没有任何问题,但是写的很简单,如果不明白,欢迎进行交流。QQ:498533683