CentOS7 搭建 rsync 服務器
阿新 • • 發佈:2017-08-08
con 客戶端測試 comm yum repo div host sts 不同
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
CentOS7 搭建 rsync 服務器