Abel空间
xuwu147220591
全部博文(87)
AD(0)
nagios(2)
Linux实践工程师(12)
备份与恢复(4)
rsync(11)
2012年(1)
2009年(85)
2008年(1)
格伯纳
cynthia
gkhxx
yscparty
lhb_immo
gary_men
cyyjm
97565218
awen2015
分类: BSD
2009-01-21 12:06:54
1. 安装:yum install rsync
2. Rsync服务器的配置文件(手动创建)mkdir /etc/rsyncdtouch /etc/rsyncd/rsyncd.conftouch /etc/rsyncd/rsyncd.secretschmod 600 /etc/rsyncd/rsyncd.secretstouch /etc/rsyncd/rsyncd.motd
3. 启动:/usr/bin/rsync --daemon --config=/etc/rsyncd/rsyncd.conf
4. 同步:rsync -avzP /home
配置文件如下:## Create by 2008/09/14####################################################################
# Main configurationpid file = /var/run/rsyncd.pidport = 873address = IPuid = nobodygid = nobodyuse chroot = noread only = nohosts allow = IPhosts deny = *max connections = 5motd file = /etc/rsyncd/rsyncd.motdlog file = /var/log/rsync.logtransfer logging = yeslog format = %t %a %m %f %bsyslog facility = local3timeout = 300
[home]path = /homelist = yesignore errorsauth users = adminsecrets file = /etc/rsyncd/rsyncd.secretscomment = home directoryexclude = './.bash_history.txt'#exclude = www/ './.bash_history.txt'
上一篇:freebsd4.10下VSFTP配置
下一篇:IBM x系列服务器”DASD“故障一例
登录 注册