On Fri, 13 Apr 2001, Dave Dykstra wrote:
> Although I've heard the suggestion before, my first reaction is that it
> would seem to be counter to the main purpose of rsync which is to make
> files identical in two places; that is, there is no need for the rsync
> rolling checksum algorithm if the file doesn't exist on both sides.

While it's true this doesn't make any use of the rolling checksum,
because rsync gets so many other things right in its file transfer
algorithm I found it easier to just slightly extend rsync than to do a
more major extension to scp (for instance, I want files to only be put
into their final place when they're complete, which means that the
tool needs to be able to write out a temp file to a different
directory and then move the completed file into place when it has
fully arrived).  It was easy for me to add an erase option to scp, but
I haven't yet attempted to add a tempfile option to it.

> At a minimum I would definitely not want it to be an option that
> could be selected with a single letter.

Yeah, that would be safer.  I think that "--move-files" is a pretty
good name for the option.  Let me know if you'd like me to whip
something up for you (or feel free to tackle it yourself, if you
like).  The 2-line code fragment (plus "extern" line) I sent last time
is really all I needed to add outside of the option parsing/passing
code.

..wayne..


Reply via email to