preload
九月 22


參考:
http://fanqiang.chinaunix.net/a6/b7/20010908/1305001258_b.html
我的實做如下:
(1) 建立/etc/rsyncd.conf

[xxx_Module_Name1]
path = /export/fs/backup/myPath1
auth users = mis
uid = root
gid = root
secrets file = /etc/rsyncd.secrets
read only = no

[xxx_Module_Name2]
path = /export/fs/backup/myPath2
auth users = mis
uid = root
gid = root
secrets file = /etc/rsyncd.secrets
read only = no

(2) 建立/etc/rsyncd.secrets, 並將權限改為600

mis:xxx_my_password

(3) 修改/etc/services, 增加下列兩行

rsync           873/tcp                         # rsync
rsync           873/udp                        # rsync

之後啟動rsync daemon 即可.
啟動方式參考:
http://bbs.chinaunix.net/viewthread.php?tid=534929
實做如下:
(4) 修改inetd.conf, 增加下列一行

rsync  stream  tcp   nowait  root  /bin/rsync rsync --daemon

(5) 使用inetconv 轉換inetd.conf 到 /var/svc/manifest/network/rsync-tcp.xml

#inetconv

以上, OK啦

Comments are closed.