1.安装
yum install -y xinetd rsync
2.配置
cat /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 }
cat /etc/rsyncd.conf
uid = root git = root use chroot = no max connections = 4 strict modes = yes port = 873 pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock log file = /var/log/rsyncd.log [backup] path = /srv comment = this is test #host allow = read only = no
3.启动
/etc/init.d/xinetd start
4.使用
rsync -Rrav --delete /data/web/ IP::backup
时间: 2024-10-16 00:16:55