安裝 xinetd, rsync
yum install rsync xinetd
設定 /etc/xinetd.d/rsync
# default: off
# description: The rsync server is a good addition to an ftp server, as it \
# allows crc checksumming etc.
service rsync
{
disable = no
flags = IPv6
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
[backup]
path = /var/www/pms
uid = root
gid = root
hosts allow = 192.168.1.0/24
read only = no
啟動 xinetd 服務
service xinetd restart
執行 rsync
rsync -azrP --delete /var/www/speech/sysdata 140.112.124.67::backup/



