标签:rsync xinetd
xinted结合rsync 无密码使用
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
本文出自 “浅浅的淡淡” 博客,请务必保留此出处http://cuixiang.blog.51cto.com/8204722/1826445
标签:rsync xinetd
原文地址:http://cuixiang.blog.51cto.com/8204722/1826445