1. 程式人生 > >rsync的配置檔案(可以兩端互傳檔案了,不限ip)

rsync的配置檔案(可以兩端互傳檔案了,不限ip)

use chroot = no                                                                                                                                           
pid file = /var/run/rsyncd.pid
log file = /var/log/rsync.log
[root]
    hosts allow = *
    uid = root
    gid = root
    path = /
    read only = no

啟動方式:(當然路徑要根據自己的情況來)

/usr/local/rsync/bin/rsync --daemon --config=/etc/rsyncd.conf

重啟或者啟動的方式也可以:

linux命令列下輸入:service rsync restart