linux服务端
1.yum -y install rsync 安装rsync
2.vim /etc/rsyncd.secrets
root:123456 前面是用户,后面是密码用:隔开
3.vim /etc/rsyncd.conf
pid file = /var/run/rsyncd.pid
port = 873
address = 10.255.0.101
uid = root
gid = root
use chroot = yes
read only = no
hosts allow=10.255.0.102
hosts deny=*
max connections = 25
motd file = /etc/rsyncd/rsyncd.motd
timeout = 300
log file = /var/log/rsync.log
log format = %t %a %m %f %b
syslog facility = local3
[test]
path = /opt/test
list=yes
ignore errors
auth users = root
secrets file = /etc/rsyncd.secrets
修改rsycn的配置文件,如果yum下载的没有rsyncd.conf,那就自己写一个最后启动的时候指定就行了
4./usr/bin/rsync –daemon –config=/etc/rsyncd.conf 指定配置文件启动rsync
windows客户端
1.下载rsync客户端: cwRsync
利用rsync从linux同步到windows
最新推荐文章于 2024-05-16 09:50:37 发布