CentOS7 搭建 rsync 服务器
1:安装软件包:
yum install -y rsync
2:修改配置文件: /etc/rsyncd.conf
uid = root gid = root use chroot = yes #下面是不同模块各自的配置和路径,仅供参考 [yum] path = /mirrors/yum/ comment = repository list = true uid = root gid = root hosts allow = * [apt] path = /mirrors/apt/ comment = repository list = true uid = root gid = root hosts allow = *
3:启动服务:
rsync --daemon --no-detach
4:客户端测试命令:
rsync -avh -H --delete --progress rsync://10.3.10.34/apt/ ./apt