axkibe/lsyncd — Issue #97: Treat rsync exit code 13 as temporary problem
Author: axkibe
Created: 2011-11-16 15:12:58+00:00
State: open

Originally filed by anton.to...@gmail.com on 2011-11-16T12:02:09

Sometimes when you manipulate files in source directory during a sync, rsync exits with exit code 13 which is treated as critical by lsyncd:
Oct 11 12:33:13 backend2 lsyncd: Error, Unknown exitcode on list = 13
Oct 11 12:33:13 backend2 lsyncd: Error, Critical exitcode.

I am using lsyncd 2.0.5 on debian squeeze with rsync 3.0.3.

lsyncd should simply retry the sync if rsync returns code 13. The patch is attached.