Rsync Server
建立共享資料夾

啟動伺服器

建立設定檔


檢視 rsync server的設定檔/etc/rsyncd.conf
port = 873
[Rsync]
path = /srv/dev-disk-by-label-data/./Rsync
uid = root
gid = users
list = yes
read only = no
write only = no
use chroot = yes
hosts allow = 172.16.10.9
hosts deny = *
lock file = /var/lock/rsyncd-Rsync
重新啟動服務
service rsync restart
如此,就可以從172.16.10.9傳輸資料
rsync -avP 本地資料 root@172.16.10.12::Rsync

Last updated
Was this helpful?