寻觅生命中的那一片浅草......

每日存档 八月 31st, 2010

rsync_error_deflate

Today I check synchronization status of my backup files.There is three files are not synchronizing.I type the rsync command manually to see what happend.

rsync -vazu –password-file=/etc/my.pass rsy@192.168.1.130::db_backup /data/backup/

it shows these errors:

deflate on token returned 0 (12912 bytes left)
rsync error: error in rsync protocol data stream (code 12) at token.c(274)
rsync: connection unexpectedly closed (347 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [receiver=2.6.8]
rsync: connection unexpectedly closed (327 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [generator=2.6.8]

After some googles,I find that There is something wrong with the last file in local directory.
Then I delete the last file in local directory and run the rsync command again.It works.All files are synchronizing.

References:
http://www.linuxsir.org/bbs/showthread.php?t=201042

2010-09-14
I can’t believe that the problem happens again.There is two files are not synchronizing.
I search this error “deflate on token returned” in google.I find this URL.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=50248
It’s very helpful.According to this article,that guy also get “deflate on token returned” error when he use “rsync -z” to deal with a 2GB big file
All my files are nearly 7GB.Maybe the “-z” option make rsync crash.
When I run “rsync -vau –password-file=/etc/my.pass rsy@192.168.1.130::db_backup /data/backup/”,it works.
At last, I remove -z from my rsync scripts.

2010年八月
« 7月   9月 »
 1
2345678
9101112131415
16171819202122
23242526272829
3031