qrsync 同步文件不全


使用 linux 64位版本的qrsync 工具同步某目录,同步完成后发现两个文件没有被同步。


 shell


 日志:
2015/05/25 09:46:08.027206 [INFO] qbox.us/qrsync/v2/qrsync/qrsync.go:49: Syncing /data/node-project/software-archive/archive => software-archive
2015/05/25 09:46:08.027700 [INFO] qbox.us/qrsync/v2/qrsync/qrsync.go:83: Processing file: /home/psd/.qrsync/MjDDMTvzSlFAVnWcNR92ks.log
^C[psd@psd001 qiniu]$ ./qrsync-v2   config.json
2015/05/25 09:46:09.288003 [INFO] qbox.us/qrsync/v2/qrsync/qrsync.go:49: Syncing /data/node-project/software-archive/archive => software-archive
2015/05/25 09:46:09.288150 [INFO] qbox.us/qrsync/v2/qrsync/qrsync.go:83: Processing file: /home/psd/.qrsync/MjDDMTvzSlFAVnWcNR92ks.log
^C[psd@psd001 qiniu]$ ./qrsync   config.json
2015/05/25 09:46:19.297779 [INFO] qbox.us/qrsync/v3/qrsync/qrsync.go:49: Syncing /data/node-project/software-archive/archive => software-archive
2015/05/25 09:46:19.298024 [INFO] qbox.us/qrsync/v3/qrsync/qrsync.go:117: Processing /home/psd/.qrsync/MjDDMTvzSlFAVnWcNR92ks.db
2015/05/25 09:46:19.435497 [INFO] qbox.us/qrsync/v3/sync/sync.go:163: Putting jdk.zip
2015/05/25 09:47:25.225349 [INFO] qbox.us/qrsync/v3/sync/sync.go:137: Put /data/node-project/software-archive/archive/jdk.zip => software-archive:archive/jdk.zip
2015/05/25 09:47:25.226203 [INFO] qbox.us/qrsync/v3/sync/sync.go:163: Putting maven.zip
2015/05/25 09:47:29.662807 [INFO] qbox.us/qrsync/v3/sync/sync.go:137: Put /data/node-project/software-archive/archive/maven.zip => software-archive:archive/maven.zip
2015/05/25 09:47:29.663076 [INFO] qbox.us/qrsync/v3/sync/sync.go:163: Putting mysql.zip
^@2015/05/25 09:47:40.450607 [INFO] qbox.us/qrsync/v3/sync/sync.go:137: Put /data/node-project/software-archive/archive/mysql.zip => software-archive:archive/mysql.zip
2015/05/25 09:47:40.450924 [INFO] qbox.us/qrsync/v3/sync/sync.go:163: Putting nginx.zip
2015/05/25 09:47:46.577044 [INFO] qbox.us/qrsync/v3/sync/sync.go:137: Put /data/node-project/software-archive/archive/nginx.zip => software-archive:archive/nginx.zip
2015/05/25 09:47:46.577860 [INFO] qbox.us/qrsync/v3/sync/sync.go:163: Putting sms.zip
2015/05/25 09:47:46.693128 [INFO] qbox.us/qrsync/v3/sync/sync.go:137: Put /data/node-project/software-archive/archive/sms.zip => software-archive:archive/sms.zip
2015/05/25 09:47:46.693335 [INFO] qbox.us/qrsync/v3/sync/sync.go:163: Putting system.zip
2015/05/25 09:47:46.787180 [INFO] qbox.us/qrsync/v3/sync/sync.go:137: Put /data/node-project/software-archive/archive/system.zip => software-archive:archive/system.zip
2015/05/25 09:47:46.787482 [INFO] qbox.us/qrsync/v3/sync/sync.go:163: Putting tomcat.zip
2015/05/25 09:47:51.871952 [INFO] qbox.us/qrsync/v3/sync/sync.go:137: Put /data/node-project/software-archive/archive/tomcat.zip => software-archive:archive/tomcat.zip
2015/05/25 09:47:51.872514 [INFO] qbox.us/qrsync/v3/sync/sync.go:163: Putting tools.zip
2015/05/25 09:47:51.950711 [INFO] qbox.us/qrsync/v3/sync/sync.go:137: Put /data/node-project/software-archive/archive/tools.zip => software-archive:archive/tools.zip

该目录下有文件列表如下:


 shell


 -rw-rw-r--. 1 psd psd 7.2M 5月  25 09:43 apache.zip
-rw-rw-r--. 1 psd psd  797 5月  25 09:44 config
-rwxrwxr-x. 1 psd psd 2.1K 5月  25 09:43 install.sh
-rw-rw-r--. 1 psd psd 136M 5月  25 09:44 jdk.zip
-rw-rw-r--. 1 psd psd 7.7M 5月  25 09:44 maven.zip
-rw-rw-r--. 1 psd psd  20M 5月  25 09:44 mysql.zip
-rw-rw-r--. 1 psd psd 7.4M 5月  25 09:44 nginx.zip
-rw-rw-r--. 1 psd psd 3.7K 5月  25 09:44 sms.zip
-rw-rw-r--. 1 psd psd 1.1K 5月  25 09:44 system.zip
-rw-rw-r--. 1 psd psd 9.4M 5月  25 09:44 tomcat.zip
-rw-rw-r--. 1 psd psd 1.2K 5月  25 09:44 tools.zip

其中install.sh 和 config 两个文件同步失败

config.json 文件如下:


 shell


 {
        "src":          "/data/node-project/software-archive/archive/",
        "dest":         "qiniu:access_key=***&secret_key=***&bucket=software-archive&key_prefix=archive/",
        "deletable":    0,
        "debug_level":  1
}

七牛云存储 qrsync

灼眼的忧郁 9 years, 8 months ago

删除 .qrsync 下的文件就可以了 。估计是缓存的问题 。

芥末的人参 answered 9 years, 8 months ago

Your Answer