Eliminate the temp copy

Juan Pablo Lorier jplorier at gmail.com
Tue Jan 28 05:35:57 MST 2014


Hi Matthias,

Thanks for the reply. The dot files are the ones considered somehow as
temp files by curlftp and thus I had to use the -T flag to redirect the
temps to a local folder.
The inplace flag is what I'm looking for, I'll take a look at that.
Regards,

On 28/01/14 10:20, Matthias Schniedermeyer wrote:
> On 28.01.2014 08:35, Juan Pablo Lorier wrote:
>> Hi,
>>
>> I have to sync two directories and one is an ftp mount. I had to set a
>> different tmp dir as tmp files are not allowed in ftp mounts so I see no
>> point in copying things to a temp dir if they won't be used for the
>> transfer.
>> Is there any way to eliminate the use of a tmp dir? If not, could it be
>> a feature request?
> rsync doesn't use a tmp-directory by default. The default is to 
> make it a "."-file with an additions random extension to the filename.
>
> So in your case there should be a commandline (rsync.conf?) option set 
> that does that (If i read the man-page correctly, it's -T/--temp-dir). 
> Just remove it and rsync falls back to default behaviour.
>
> If you don't want tmp-files at all, with "--inplace" you instruct rsync 
> to change files "inplace", but you should read the man-page for the 
> gotchas.
>
>
>



More information about the rsync mailing list