rsync+sersync同步处理问题

渺渺星辰 发布于 2016/10/19 18:18
阅读 470
收藏 0

环境已经搭建完毕:

    rsync 3.0  ubutu12.04   

手动能够实现文件同步:    

root@precise32:/usr/local/rsync# /usr/local/rsync/bin/rsync -avH --progress --delete  /tmp/lmy/  123@192.168.9.203::lmy --password-file=/usr/local/rsync/rsync.password
sending incremental file list
deleting sersync_32bit_binary_stable_final.tar.gz
deleting rsync-3.1.0.tar.gz
deleting rateScript.log
./
123
              4 100%    0.00kB/s    0:00:00 (xfr#1, to-chk=0/2)


sent 116 bytes  received 126 bytes  44.00 bytes/sec
total size is 4  speedup is 0.02


但是我在执行 /usr/local/sersync/sersync2 -r -d -o /usr/local/sersync/confxml.xml 之后并不能实现同步。

set the system param
execute:echo 50000000 > /proc/sys/fs/inotify/max_user_watches
execute:echo 327679 > /proc/sys/fs/inotify/max_queued_events
parse the command param
option: -d run as a daemon
option: -r rsync all the local files to the remote servers before the sersync work
option: -o config xml name:  /usr/local/sersync/confxml.xml
daemon thread num: 10
parse xml config file
host ip : localhost host port: 8008
daemon start,sersync run behind the console 
use rsync password-file :
user is 123
passwordfile is /usr/local/rsync.password
config xml parse success
please set /etc/rsyncd.conf max connections=0 Manually
sersync working thread 12  = 1(primary thread) + 1(fail retry thread) + 10(daemon sub threads) 
Max threads numbers is: 22 = 12(Thread pool nums) + 10(Sub threads)
please according your cpu ,use -n param to adjust the cpu rate
------------------------------------------
rsync the directory recursivly to the remote servers once
working please wait...
execute command: cd /tmp/lmy && rsync -artuz -R --delete ./ 123@192.168.9.203::lmy --password-file=/usr/local/rsync.password >/dev/null 2>&1 
run the sersync: 
watch path is: /tmp/lmy

是不是由于没有配置系统变量的原因。

还有一个问题:当我执行/usr/local/sersync2 -d -r -o /usr/local/sersync/confxml.xml之后是不是每当我的目录下有文件都会同步呢?

本人刚接触这方面,希望大神们答疑解惑。谢谢!

加载中
0
土卫十六
土卫十六

SerSync 是什么能介绍一下吗?我看了他们的网站,仍然不是很懂!!

返回顶部
顶部