Patch: Better handling for rsync temporary files

Kevin Korb kmk at
Wed Oct 26 21:29:31 MDT 2011

Hash: SHA1

Suddenly I feel compelled to point out the existence of --temp-dir

On 10/26/11 22:52, Alex Jurkiewicz wrote:
> On Thu, Oct 27, 2011 at 5:30 AM, Wayne Davison <wayned at> wrote:
>> Here's a patch that should handle the above idea:
> Unknown Paste ID!
> Regardless, all your suggested changes still improve the capability of
> rsync to run simultaneously on the same tree, so it sounds good. My
> one niggle is that always keeping the token in the temporary filename
> without any special-case truncation would allow users to have stronger
> guarantees about excluding these files.
> How about rsync trims just the original filename portion, and if it
> reaches zero characters and even '.XXXXXX.rsynctmp' doesn't fit, error
> out. If we want to keep going, rsync could try fewer X's down to zero
> and eventually try the 9 char '.rsynctmp' filename.
> (Well, one problem with the above is the exclude pattern would have to
> be .*rsynctmp, so you could give up at the 11 char '.A.rsynctmp'
> instead.)
> Alex

- -- 
	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at  (work)
	Orlando, Florida		kmk at (personal)
	Web page:
	PGP public key available on web site.
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


More information about the rsync mailing list