weird interaction between --delete-delay and --partial-dir when transfer is interrupted

Michal Soltys soltys at
Mon Dec 22 12:57:16 GMT 2008

Shivkumar Venkatasubrahmanyam wrote:
> ... then without -f 'R .rp/', dst/.rp is not removed.  With -f 'R .rp/', 
> it is removed but if dst/a is updated then we have the same issue (exit 
> with code 23).  This is entirely consistent with your strace i.e. code 
> 23 whenever there are two separate attempts to remove .rp/. 

Well, contents of nonexisitng dir, to be precise :)

You can change --delete-delay into --delete-after, and it will work 
without problems then. Delete pass will be done separately after file 
transfers, and checking what files to delete will happen after .rp is 
already gone.

> Thanks for all your help :)
> Shiv


More information about the rsync mailing list