GithubHelp home page GithubHelp logo

sersync's People

Contributors

johntech-o avatar

sersync's Issues

sersync不支持rsync密码方式同步?

我们是使用rsync的密码方式进行同步文件,而我发现sersync的��
�置文件不能设置。请问作者什
么时候可以添加?

非常感谢的无私奉献。

Original issue reported on code.google.com by [email protected] on 6 Mar 2010 at 2:33

无法实时同步隐藏文件?

我打开了debug测试了新建一个.test文件保存
没有进行同步操作

然后我用-r方式启动的时候会把隐藏文件同步过去

是否是实时同步的部分把隐藏文件自动跳过了?


Original issue reported on code.google.com by [email protected] on 6 May 2010 at 4:31

过虑的问题

 我发现如果我是用svn的hooks的自动同步 我填写的过虑规则都会失效

 如创建一个目录 在svn里面提交 内容就会自动的update到一个目录 这个目录就是被监控的目录
 在过虑的里面填写 .svn 或者\.svn 或 ^\.svn或 ^\.svn/* 都是没办法过虑这个.svn目录的 
不知道这个有什么特殊的地方

Original issue reported on code.google.com by [email protected] on 9 Jun 2010 at 1:26

两个简单的新功能需求

1、上次在issue中提到的 加入 -p的参数 
因为这个参数是同步权限用的 如果在使用
-e ssh 方式的时候尤其重要  
如果是使用rsync的服务模块中间可以用uid gid问题都
不大 不然还得单独跑一个脚本来设置权限
举例:
rsync  -rtuzp  -e ssh  --exclude-from=/home/svn/exclude.list ${SRC}
root@${REMOTEIP}:${REMOTE_Document}
具体可以查看man rsync 
-p, --perms                 preserve permissions
还可以添加-z 减小传输
-z, --compress              compress file data during the transfer

2、能否加入 --timeout 参数 
我现在发现在同时发送多个数据的时候  因为网络的原
因会有没有同步成功的文件  
因为我的同步有很多都是国外机房的数据 所以网络质量
不能保证 rsync自带的timeout 参数可以解决这个事情 。
rsync  -rtuzp  -e ssh  --timeout=120 --exclude-from=/home/svn/exclude.list
${SRC} root@${REMOTEIP}:${REMOTE_Document}

--timeout=TIME          set I/O timeout in seconds

这两个参数都比较容易实现 希望可以帮我加下 谢谢。

Original issue reported on code.google.com by [email protected] on 19 May 2010 at 11:18

sersync2.4 bug

如果在xml文件设定为用户密码认证模式时执行sersync2.4 -d -r 
不能对整个路径与
远程服务器整体同步一遍。

Original issue reported on code.google.com by [email protected] on 17 Apr 2010 at 3:13

start fail

[root@centos5 sersync]# ll /Data/
total 24
drwxr-xr-x 5 root root 4096 Apr  9 11:23 apps
drwxr-xr-x 4 root root 4096 Apr  4 10:11 tgz
drwxr-xr-x 2 root root 4096 Apr  7 06:40 tmp
drwxr-xr-x 3 root root 4096 Apr  9 12:08 webapps
[root@centos5 sersync]# cat confxml.xml 
<?xml version="1.0" encoding="ISO-8859-1"?>
<head version="2.2">
    <host hostip="192.168.1.45" port="8008"></host>
    <filter start="false">
        <exclude expression="(.*)\.gz"></exclude>
        <exclude expression="^info/*"></exclude>
    </filter>
    <sersync>
        <localpath watch="/Data/webapps" debug="false">
            <remote ip="192.168.1.44" name="webapps"/>
            <remote ip="192.168.1.24" name="webapps"/>
        </localpath>
        <rsyncauth start="false" users="www" 
passwordfile="/etc/rsync.pas"/>
        <crontab start="false" schedule="600">
            <crontabfilter start="false">
                <exclude expression="*.php"></exclude>
                <exclude expression="info/*"></exclude>
            </crontabfilter>
        </crontab>
    </sersync>
</head>
[root@centos5 sersync]# ./sersync2.4 
对系统参数进行配置
执行命令:echo 50000000 > /proc/sys/fs/inotify/max_user_watches
执行命令:echo 327679 > /proc/sys/fs/inotify/max_queued_events
解析命令行参数
同步守护线程数: 10
解析配置文件
当前主机ip为: 192.168.1.45      当前主机端口为8008
Segmentation fault
[root@centos5 sersync]# 


以下情况良好,是否必须存在plugin的字段?

[root@centos5 GNU-Linux-x86]# cat confxml.xml 
<?xml version="1.0" encoding="ISO-8859-1"?>
<head version="2.2">
    <host hostip="192.168.1.45" port="8008"></host>
    <filter start="false">
        <exclude expression="(.*)\.gz"></exclude>
        <exclude expression="^info/*"></exclude>
    </filter>
    <sersync>
        <localpath watch="/Data/webapps" debug="false">
            <remote ip="192.168.1.44" name="webapps"/>
        </localpath>
        <rsyncauth start="false" users="www" 
passwordfile="/etc/rsync.pas"/>
        <crontab start="false" schedule="600">
            <crontabfilter start="false">
                <exclude expression="*.php"></exclude>
                <exclude expression="info/*"></exclude>
            </crontabfilter>
        </crontab>
        <plugin start="false" name="refreshCDN"/>
    </sersync>
</head>
[root@centos5 GNU-Linux-x86]# ./sersync2.4 
对系统参数进行配置
执行命令:echo 50000000 > /proc/sys/fs/inotify/max_user_watches
执行命令:echo 327679 > /proc/sys/fs/inotify/max_queued_events
解析命令行参数
同步守护线程数: 10
解析配置文件
当前主机ip为: 192.168.1.45      当前主机端口为8008
同步配置文件解析成功
建议手动修改/etc/rsyncd.conf中的max 
connections为0,取消最大连接限制
程序等待时线程数: 12  = 1(主线程) + 1(出错重传线程) + 
10(开启的同步守护线
程) 
请根据同步极限情况的CPU使用率,使用-n参数 进行调整
执行同步程序:
监控路径为:/Data/webapps




Original issue reported on code.google.com by hqlulu on 16 Apr 2010 at 2:38

在启动rsync进程同步之前能加个检测吗?

当inotify检测到有变化,触动rsync同步之前,能先加个对目标��
�机组的检测吗,先测试一下这些目录主机的rsync服务是否正��
�,不正常的话填接排除这些主机,并给出错误信息。

Original issue reported on code.google.com by [email protected] on 10 Jun 2010 at 3:10

sersync2.5beta1_32bit出现严重问题

我最近在测试这个软件 今天出现了严重的问题
被监控的这台服务器 不停的rsync 而且所有的rsync的进程僵死 
defunct 系统压力狂升

进程情况:
svn]# ps aux | grep rsync
root 8129 0.0 0.0 63844 1080 ? R 17:00 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.164::server >/dev/null 2>&1 
root 8136 2.2 0.0 0 0 ? Z 17:00 0:00 [rsync] <defunct>
root 8139 0.0 0.0 63844 1076 ? R 17:00 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.163::server >/dev/null 2>&1 
root 8140 2.5 0.0 0 0 ? Z 17:00 0:00 [rsync] <defunct>
root 8155 0.0 0.0 63844 1080 ? R 17:00 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.164::server >/dev/null 2>&1 
root 8156 2.5 0.0 0 0 ? Z 17:00 0:00 [rsync] <defunct>
root 8159 0.0 0.0 63844 1076 ? R 17:00 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.163::server >/dev/null 2>&1 
root 8160 2.5 0.0 0 0 ? Z 17:00 0:00 [rsync] <defunct>
root 8161 0.0 0.0 63844 1076 ? R 17:00 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.164::server >/dev/null 2>&1 
root 8162 2.5 0.0 0 0 ? Z 17:00 0:00 [rsync] <defunct>
root 8179 0.0 0.0 63844 1076 ? R 17:01 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.163::server >/dev/null 2>&1 
root 8180 5.0 0.0 0 0 ? Z 17:01 0:00 [rsync] <defunct>
root 8181 0.0 0.0 63844 1076 ? S 17:01 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.164::server >/dev/null 2>&1 
root 8182 0.0 0.0 65492 776 ? R 17:01 0:00 rsync -rtu -R
./rsync_fail_log.sh 192.168.13.164::server
root 8187 0.0 0.0 63844 1080 ? S 17:01 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.164::server >/dev/null 2>&1 
root 8188 0.0 0.0 65492 772 ? R 17:01 0:00 rsync -rtu -R
./rsync_fail_log.sh 192.168.13.164::server
root 8191 0.0 0.0 63844 1076 ? R 17:01 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.163::server >/dev/null 2>&1 
root 8192 5.0 0.0 0 0 ? Z 17:01 0:00 [rsync] <defunct>
root 8193 0.0 0.0 63844 1076 ? R 17:01 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.164::server >/dev/null 2>&1 
root 8194 0.0 0.0 0 0 ? Z 17:01 0:00 [rsync] <defunct>
root 8197 0.0 0.0 63844 1080 ? R 17:01 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.163::server >/dev/null 2>&1 
root 8198 5.0 0.0 0 0 ? Z 17:01 0:00 [rsync] <defunct>
root 8199 0.0 0.0 63844 1076 ? R 17:01 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.164::server >/dev/null 2>&1 
root 8200 0.0 0.0 0 0 ? Z 17:01 0:00 [rsync] <defunct>
root 8207 0.0 0.0 63844 1076 ? S 17:01 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.163::server >/dev/null 2>&1 
root 8208 9.0 0.0 66300 1204 ? S 17:01 0:00 rsync -rtu -R
./rsync_fail_log.sh 192.168.13.163::server
root 8209 0.0 0.0 63844 1080 ? S 17:01 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.164::server >/dev/null 2>&1 
root 8210 0.0 0.0 65492 772 ? R 17:01 0:00 rsync -rtu -R
./rsync_fail_log.sh 192.168.13.164::server
root 8216 0.0 0.0 63844 1076 ? S 17:01 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.163::server >/dev/null 2>&1 
root 8217 0.0 0.0 65492 816 ? R 17:01 0:00 rsync -rtu -R
./rsync_fail_log.sh 192.168.13.163::server
root 8218 0.0 0.0 63844 1080 ? S 17:01 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.164::server >/dev/null 2>&1 
root 8219 0.0 0.0 65492 776 ? R 17:01 0:00 rsync -rtu -R
./rsync_fail_log.sh 192.168.13.164::server
root 8220 0.0 0.0 63844 1080 ? S 17:01 0:00 sh -c cd /home/server && rsync
-rtu -R "./rsync_fail_log.sh" 192.168.13.163::server >/dev/null 2>&1 
root 8221 0.0 0.0 65492 820 ? S 17:01 0:00 rsync -rtu -R
./rsync_fail_log.sh 192.168.13.163::server
root 8224 0.0 0.0 6020 556 pts/10 R+ 17:01 0:00 grep rsync
root 11597 41.9 0.0 304648 1796 ? Rsl May14 613:30 sersync2 -d -o
/home/sh/confxml.xml

系统压力:
top - 17:02:53 up 325 days, 1:30, 6 users, load average: 14.67, 13.63, 13.02
Tasks: 325 total, 13 running, 312 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.1%us, 0.9%sy, 1.7%ni, 94.6%id, 0.4%wa, 0.3%hi, 1.0%si, 0.0%st
Mem: 4049336k total, 3996108k used, 53228k free, 170616k buffers
Swap: 7118832k total, 635692k used, 6483140k free, 881148k cached
 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 
 9246 root 16 0 66788 1692 764 R 19.3 0.0 0:00.10 rsync 
 9229 root 16 0 66788 1684 764 R 17.4 0.0 0:00.09 rsync 
 9239 root 16 0 66788 1688 764 R 17.4 0.0 0:00.09 rsync 
 9251 root 16 0 66788 1688 764 R 17.4 0.0 0:00.09 rsync 
 9213 root 15 0 66788 1688 764 R 9.6 0.0 0:00.05 rsync

系统监控图:
看附件 最后把所有的进程杀掉之后压力就降下来了。

说明:
1)使用的版本:sersync2.5beta1_32bit_binary.tar.gz
2)监控的目录并没有添加任何东西
3)传送的目录是rsync_fail_log.sh
4)远程目标服务器的rsync我都测试过正常
5)sersync没有其它日志说明


Original issue reported on code.google.com by [email protected] on 15 May 2010 at 9:27

bate3新的日志BUG

用了一段时间的beta3了 还是发现有些bug 而且有些郁闷
问题:
fail log 比较敏感
    不管是真的成功还是失败的文件都有可能记录到日志文件中,上次其实已经说过了
    但比较郁闷的是,并没有重发和删除原来的记录,所以这里应该是有BUG的
我的配置:
 <failLog path="/tmp/rsync_TSBR_fail_log.sh" timeToExecute="5"/>

#cat  /tmp/rsync_TSBR_fail_log.sh  | grep "^cd" | wc -l
69
上面这是十分钟之后得到的一个数目,并且第一行一直有检��
�并没有更新和删除
而我的配置文件是5分钟的。
所以这里应该是有问题的。

Original issue reported on code.google.com by [email protected] on 24 May 2010 at 11:39

是否支持自定义rsync参数

我提出的主要原因是,可能同步不需要加上 
--delete,是否有什么方式可以处理

Original issue reported on code.google.com by hqlulu on 16 Apr 2010 at 2:46

关于sersync2.5beta2 的几个问题

  首先要感谢下作者,效率很高,很快就出了新的功能。
新功能有三点:
1、添加了指定端口访问
2、可以通过ssh的方式进行传送
3、可以调用其它命令

存在一些问题和一些需求:
1、通过ssh的传送方式,这个版本肯定是不能成功的
原因是这个命令的格式是: rsync -avz -e ssh 监控path  
用户名@IP:/目标path
而不是用rsync的模块方式 这个方法的使用有点类似scp 
2、配置文件的可读性和混合性
     混合性:是指可能监控同一个目录传送到多个目标地址的方式可能是通过默认端
口 也可能是指定端口 或者是通过ssh的方式
     理想的情况:
<remote ip="122.1.1.1" method="port"  port="874"  name="test1"/>
<remote ip="122.1.1.2" method="port"  port="8989"  name="test2"/>
<remote ip="127.0.0.1" method="ssh" path="/tmp"/> 
这样写配置比较清楚明了
意思就是 remote有几个可选参数 ip  method port name path
method可能需要添加一些判断 
,但至少port这个参数可以添加上因为port默认就有
默认为874
3、日志问题
   首先我发现被监控的目录甚至子目录都会产生rsync_fail_log.sh这个文件 该文件
为空而且会被同步。
   另外建议日志添加参数可以自主指定位置,这样对日志管理收集更灵活
   如果日志可以显示
     time remote IP=xxx.xxx.xxx.xxx  模块名称 [Success]
     time remote IP=xxx.xxx.xxx.xxx  路径    [Failure]
    并显示没有成功的内容
   如果麻烦先指定失败日志
希望该软件越来越强大

Original issue reported on code.google.com by [email protected] on 14 May 2010 at 3:47

您好,可以增加些功能吗?

1.由于环境需求,网络经常波动不稳定,而且需要更新的客户
端也多。这个失败重试次数,能设
置个参数?现在就失败重试一次,只能更改这个失败重试的��
�隔时间,不能设置次数。有一个隔
多长时间全体同步的,用这个的话,如果文件有很多,客户端�
��很多的话,这个开销太大。同步之
前比较都要用去很多时间。所以最好能加个设置失败重试次��
�的功能。

2.应该设置一个,如果连续在发布源路径下(inotify监控目录)有
文件创建或改动的情况下,不
要触发rsync.如果写一个文件就触发一个rsync,连续上传或更改��
�文件多了,再加上需要同步的
客户端多的话,那同步线程会很多,同一个目的服务器上都��
�产生N多连接(很容易失败,失败队列
也会很长)。改成,如果一直有收到inotify写操作的话乎略,在��
�段时间内收不到写操作才开始
执行rsync.这样会少很多连接同步次数.

Original issue reported on code.google.com by [email protected] on 3 Jun 2010 at 7:43

错误事件丢失

记录到fail_log日志的命令
在延迟时间到的时候
执行一次脚本就结束 
未考虑执行的结果值
如果再次失败 失败的事件就永久丢失 
如果想再次重做 就。。。。。。。

Original issue reported on code.google.com by [email protected] on 10 Jun 2010 at 10:05

sersync启动乱码

在命令行启动的时候会有乱码,请问这个是需要将控制台设��
�中文环境吗?

daemon start,sersync run behind the console
Start the crontab       Every 1 minutes rsync all the files to the remote 
servers entirely
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: 32 = 12(Thread pool nums) + 20(Sub threads)
please according your cpu ,use -n param to adjust the cpu rate

Original issue reported on code.google.com by chinaseeya on 10 Jun 2010 at 4:51

Ubuntu 10.04: undefined reference to boost::condition_variable::wait

Compilation on Ubuntu 10.04 (with boost library version 1.40.0-4ubuntu4) 
produces the error "undefined reference to boost::condition_variable::wait".

However, this is pretty simple to fix: Add the line
#include <boost/thread/condition.hpp>
after the other boost includes in QueueRetry.h

Original issue reported on code.google.com by [email protected] on 26 Jul 2010 at 8:31

编译出错

系统平台:Red Hat Enterprise Linux Server release 5.2 (Tikanga)
出错内容:

[root@kevin 10:49 sersync2]# make
make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/root/sersync2'
make  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/sersync2
make[2]: Entering directory `/root/sersync2'
mkdir -p build/Debug/GNU-Linux-x86
rm -f build/Debug/GNU-Linux-x86/QueueFilter.o.d
g++    -c -g -s -MMD -MP -MF build/Debug/GNU-Linux-x86/QueueFilter.o.d -o
build/Debug/GNU-Linux-x86/QueueFilter.o QueueFilter.cpp
In file included from QueueFilter.cpp:1:
QueueFilter.h:12:34: warning: boost/thread/locks.hpp: No such file or directory
QueueFilter.h:23: error: ‘condition_variable’ in namespace ‘boost’ does 
not
name a type
make[2]: *** [build/Debug/GNU-Linux-x86/QueueFilter.o] Error 1
make[2]: Leaving directory `/root/sersync2'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/root/sersync2'
make: *** [.build-impl] Error 2

Original issue reported on code.google.com by [email protected] on 16 Apr 2010 at 2:56

多目录同步

1、由于很多个目录同步到目标服务器的一个(或多个)目录�
��,缺少这个功能使sersync的可用性大大的减少

2、希望能支持针对路径的细化,比如需要同步的目录/var/www/h
tml/uploads,而目标服务器需要同步到的路径是/var/www/html/picts��
�并且想把uploads及以下的子目录等放在picts下


Original issue reported on code.google.com by [email protected] on 4 Nov 2010 at 10:07

远程目录和ssh key怎么配置?

使用的是2.4版本,请问怎么配置远程地址的目录,如果本地��
�录和远程目录不一致的
情况下?
另外,怎么配置才能支持ssh key,而不是密码?

Original issue reported on code.google.com by [email protected] on 15 Apr 2010 at 1:30

日志异常

查看/var/log/rsynd.log日志里有大量的这样的错误信息,很疑惑��
�
而且同步时还存在一个现象:
如果A机器已经有a.html这个文件,而B机器没有这个文件,但A��
�器里的a.html这个有时会被清空,还有两台机器的文件漏掉很�
��没有同步。
我的是A和B机器互相同步的,A机器同步到B机器,B机器同步到
A机器,双方同步同一个目录;

2010/07/10 13:25:24 [30387] params.c:Parameter() - Ignoring badly formed line 
in configuration file: ignore errors

Original issue reported on code.google.com by [email protected] on 10 Jul 2010 at 5:46

sersync2.5 daemon運行一段時間之後會死掉

sersync2.5 daemon運行一段時間之後會死掉,沒有任何log


Linux mcr1-van0 2.6.35.7 #1 SMP Thu Nov 11 11:10:41 CST 2010 x86_64 Intel(R) 
Xeon(TM) CPU 2.80GHz GenuineIntel GNU/Linux

請問有什麼方式或方向可以解決這個問題嗎?


Original issue reported on code.google.com by [email protected] on 7 Dec 2010 at 11:53

rsync和command无法同时进行

使用两个sersync2进程结果正常,但是放在一个进程中只能同步,�
��会执行command

配置文件如下

<?xml version="1.0" encoding="ISO-8859-1"?>
<head version="2.5">
    <host hostip="localhost" port="8008"></host>
    <filter start="true">
        <exclude expression="(.*)\.svn"></exclude>
        <exclude expression="(.*)\.db"></exclude>
    </filter>
    <inotify>
        <delete start="true"/>
        <createFolder start="true"/>
        <createFile start="true"/>
        <closeWrite start="true"/>
        <moveFrom start="true"/>
        <moveTo start="true"/>
        <attrib start="false"/>
        <modify start="false"/>
    </inotify>
    <debug start="false"/>
    <fileSystem xfs="false"/>
    <sersync>
        <localpath watch="/data/htdocs/images">
            <remote ip="192.168.8.12" name="images"/>
                </localpath>
            <rsync>
               <commonParams params="-artuz"/>
               <auth start="true" users="game2" passwordfile="/etc/rsync.pass"/>
               <userDefinedPort start="false" port="874"/><!-- port=874 -->
               <timeout start="false" time="100"/><!-- timeout=100 -->
               <ssh start="false"/>
            </rsync>
            <failLog path="/tmp/rsync_fail_log.sh" timeToExecute="60"/><!--default every 60mins execute once-->
            <crontab start="false" schedule="600"><!--600mins-->
               <crontabfilter start="false">
               <exclude expression="*.svn"></exclude>
               <exclude expression="*.db"></exclude>
               </crontabfilter>
            </crontab>  
        <plugin start="true" name="command"/>
    </sersync>
    <plugin name="command">
        <param prefix="/usr/local/script/clearimg.sh" suffix="" ignoreError="true"/>
        <filter start="true">
            <include expression="(.*)\.svn"/>
            <include expression="(.*)\.db"/>
        </filter>
    </plugin>
</head>

Original issue reported on code.google.com by [email protected] on 25 Jun 2010 at 6:30

RemoveWatch()函数map循环删除好像有点问题

这两天在看这个项目的源码,因为最近的开发要用到inotify的�
��性。Inotify 
class里的RemoveWatch()里,PathMap删除的处理有点问题,循环里eras
e后,iterator会失效。正确做法好像是for(;itr != map.end();){ if 
(need_delete) { map.erase(itr++) } else { ++itr};}

Original issue reported on code.google.com by [email protected] on 26 Aug 2010 at 10:58

请问,在正常情况下,sersync不会同步哪些文件呢?

在没有使用exclude 
expression情况下,sersync不会同步软连接文件,请问,还有什
么其它文件也不会同步呢? 
还有一个问题,有使用过sersync第一次同步大量数据的
朋友来说说,性能怎么样?都能完整同步吗?


Original issue reported on code.google.com by [email protected] on 28 Apr 2010 at 3:52

希望能為<remote>加上port attribute

開發團隊你們辛苦了,我有一個需求是我的各台主機rsyncd 
tcp:873是透過ssh tunnel forward到127.0.0.1, 並且各台的port分別是 
65501 65502 65503 ...

因此我的配置需求需要各台主機使用同一個IP,但是不同port, 
希望XML裡面可以增加這樣的設置支持。

thanks.

Original issue reported on code.google.com by [email protected] on 8 Nov 2010 at 8:44

请问插件开发是否有可能?

我想做的事情是文件发生变化时,对文件进行检查。

比如新修改了一个php文件,检查其是否有恶意代码,如果有��
�则删除之。

这个其实和cdn的那个类似,cdn的是调用自身的功能,而这个��
�开放给用户自己处理,
只是将文件路径传给用户的程序就可以。

比如调用的用户程序是 /data/scripts/file_change.sh

/data/scripts/file_change.sh /home/www/index.php /home/www/a.php

剩下的逻辑交给用户自己处理

Original issue reported on code.google.com by hqlulu on 22 Apr 2010 at 2:06

我的小建议

我个人觉得sersync是一个很好的工具,很支持,但也许可以规�
��的宽容一些,开放一
些。

目前软件的优点:

1 文件修改的通知,支持过滤
2 通过事件的发生而调用同步

那我觉得优势在于:

1 高效的文件修改检测
2 高效的程序调用

立足以上两点,我觉得有一些做法,当然不否定默认的一些��
�置是给新手的,我觉得
可以做的更加开放些,让大家都享受到一个高效工具:

1 过滤的开放性,可以规划灵活的方式。
比如支持类似 allow from xx 然后再 deny from xxx 
的方式,类似apache的权限方
式,意思是,你可以先确认你都检测哪些类型的文件,再否��
�其他类型。
目前过滤仅仅是表达“不要哪些”,如果支持“只要哪些”��
�就很开放的做法了

2 程序调用的灵活性
目前而言,我觉得不管rsync和plugin,都属于这个范畴。
把所有的都归纳为调用程序,就很简洁。
每个调用都可以统一一个做法,比如按类型分socket和command,�
��程序相应的参数就
可以,或者都是command的形式,它自身要处理socket就自己处理�
��
当然,程序自身要管理好进程数量之类的,这个正是自己的��
�处。

谢谢,关注中。。

Original issue reported on code.google.com by hqlulu on 22 Apr 2010 at 3:03

增加记录删除文件的操作

能否增加一个开关,即删除文件(delete)不执行,只记录到��
�一文件中,以便后期再手工统一执行删除。主要是防止在本�
��服务器的误删除或其他原因的一些操作。


Original issue reported on code.google.com by [email protected] on 1 Jul 2010 at 1:23

sersync对Debian的支持是不是不够?

我的系统是Debian GNU/Linux 5.0 \n 
\l,sersync装的是sersync2.5_64bit版的,发现在Debian系统下当新增�
��者更新的文件量大一些系统cpu使用率就突然的升的很高超过
100.不知是不是存在着这样的问题,或者有什么办法解决?


Original issue reported on code.google.com by [email protected] on 19 Aug 2010 at 2:17

对sersync的几个疑问

刚刚测试了下sersync2.5rc2,感觉还可以,但有几个疑问,请帮�
��回答下,谢谢!

1,使用sersync同步的时候是否可以启用日志的功能,如同步了
那些文件,需要有日志记录。

2,sersync只能在linux上运行,是否可以移植到Windows下跑,因为
公司的网站是使用Windows 2003

3,使用sersync实时同步的时候,是否可以实现镜像目录,也就��
�修改了文件a,目标服务器是否也会跟着修改,我想如果可以
实现自定义rsync的参数,自己也可以解决

4,在测试过程中,我在/opt/tongbu目录下创建一个文件时,感��
�速度有点慢,如果将sersync应用到大型文件服务器,是否会影
响其性能

Original issue reported on code.google.com by chinaseeya on 9 Jun 2010 at 5:58

sersync有没有延时发送到设置?

我现在做的项目有个这样的需求:主服务器上的数据希望能��
�后30秒同步到目标服务器,不知道sersync是否有这样的配置?

Original issue reported on code.google.com by [email protected] on 24 Aug 2010 at 2:10

beta3新日志问题

在使用这个版本的时候
总是可以查看到日志中有
#errno -1
cd /www/TS && rsync -rtuz -R "./adb" 111.111.111.111::module >/dev/null 2>&1
的错误
基本上每提交就会出现,但是我查看过111.111.111.111是已经同��
�了的 
不知道这个日志问题是怎么产生的 
如果按照文档说的60Min之后再传送一次的话 肯定会出问题的
麻烦查下问题,谢谢。

配置文件都是最基本的只加了个过虑
另外手动执行过日志中的这条错误没有报任何错误。

Original issue reported on code.google.com by [email protected] on 18 May 2010 at 5:45

同步稍大文件有些问题

 您好,我在使用您的程序最新版本时发现,如果我用ftp上传一批文件到监控目录,
小文件可以立即在镜像目录生成,但是大于2M的文件,镜像目
录生成的文件只有源文
件的一部分。如果我从本地文件系统拷贝相同文件夹到监控��
�录,则没有上述问题。
请问是什么原因?我用的是本地镜像,谢谢。

Original issue reported on code.google.com by [email protected] on 4 Jun 2010 at 5:37

sersync的一些问题

使用的2.5 32位最终稳定版
但是在使用的时候还是发现一些问题
在错误日志中,总是出现
#errno -1的报错
但是发现文件有时已经同步过去了  有时却没有同步
检查rsync配置
都是一些最基本的配置
最大连接数也放到了最大
而且感觉不像rsync的原因
我在手动一个个创建文件测试的时候 都会出现errno -1的报错  
感觉甚为迷惑

翻前面的帖子 貌似有人提过相同的问题

Original issue reported on code.google.com by [email protected] on 28 Feb 2011 at 2:05

设置多个监控目录

请问设置多个监控目录像这样的吗:

        <localpath watch="/data/images/PdImg" debug="true">
            <remote ip="192.168.9.25" name="PdImg"/>
        </localpath>
        <localpath watch="/data/lyric" debug="true">
            <remote ip="192.168.9.25" name="lyric"/>
        </localpath>

Original issue reported on code.google.com by [email protected] on 16 Apr 2010 at 7:31

关于-r参数会同步删除

使用-r参数时候会自动马上同步一次两边的文件,但是启动了
sersync的主服务器上的一个文件件内如果有删除掉的文件那么�
��会自动删除启动了rsync守护进程的那台机器中对应的同步模�
��中的路径,是不是sersync默认使用了--delete 
参数?能否在使用-r参数的时候不同步删除文件?

Original issue reported on code.google.com by [email protected] on 25 Oct 2010 at 8:36

一个关于同步的需求,是否有或者是否可以实现?


最近有个这样的需求,A源服务器 同步内容到 B远程服务器 
但是B远程服务器的端口
限制只有22和80端口 
所以A源服务器按正常的sersync服务无法rsync同步内容到B远程
服务器。

我想的两种解决方案:

方案1、A源服务器继续监听本地的目录,如果有变化会触发调
用B远程服务器的一个
URL页面,该页面是做好的php调用shell脚本 
执行从B远程服务器去A源服务器取数据
的动作
问题1:如果用sersync的服务 
好像并没有把rsync这个模块单独出来可以设置true或
者false
问题2:如果真的调用B远程服务器最好是可以传送变化的文件
路径过去,这样效率上
更高不需要遍例所有的文件(只是一个补充优化的问题)

方案2:通过端口22号传送过去,因为rsync自带了-e这个参数��
�以实现ssh的传送。
问题1:sersync默认就是用的rsyncd的服务 
使用模块的方式传送的,所以配置上不知
道如何进行修改才能达到这个需求 


Original issue reported on code.google.com by [email protected] on 12 May 2010 at 2:52

是否可以提供多个配置文件

请问,各位大侠是否可以提供多个配置文件分别针对不同用��
�啊。
例如,我的需求很简单,仅仅是要本机同步另外一台服务器��
�面的一个目录,是rsync的
最典型的应用,只是实时性比较高,各位是否可以在配置文��
�中提供一个这样的简单配
置文件,这样我觉得可以满足很多人的基本需求,谢谢!

Original issue reported on code.google.com by [email protected] on 17 May 2010 at 2:23

winscp上傳的.filepart問題

使用winscp上傳看起來在服務器會先產生filename.filepart 
這樣的tmp file, 然後傳輸完成之後會rename成filename

而sersync看起來只會捕捉到filename.filepart 
的產生,不會捕捉到rename傳輸完成之後rename成filename的行為,
這部分請問有解決方法嗎?


Original issue reported on code.google.com by [email protected] on 7 Dec 2010 at 6:36

程序运行一段时间后会出现不同步现像

What steps will reproduce the problem?
1. 
程序运行一段时间后,同步会中断(进程是存在的),重新��
�行一下会继续同步上
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 23 Dec 2010 at 1:32

关于配置文件

我觉得触发更新操作后的同步是用户能够灵活配置的部分,��
�议针对性的有如下功能:

1 定义 rsync 的参数,比如不需要 --delete
2 
可以支持两个服务器互相备份,只要rsync只覆盖旧文件应该就
可以了,如上
3 
过滤可以增加remote自身的配置,全局配置可能不能自定义某��
�更新

Original issue reported on code.google.com by hqlulu on 19 Apr 2010 at 8:34

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.