scp: Problem when source and destination are identical

Gert Doering gert at greenie.muc.de
Thu May 24 07:23:52 EST 2001


Hi,

On Wed, May 23, 2001 at 03:07:28PM -0500, Jim Knoble wrote:
> What i would much rather see is for the destination scp to write the
> incoming file to a temporary file in the same directory, and then
> rename() it to the destination file on a successful copy.

Strongly seconded.  But Markus doesn't seem to like it, for no other
reason than "you can use tar/mv/rsync to do this".

> Against: Requires enough space available on the destination filesystem
>          to hold both the old and the new copy of each file; this could
>          be a drawback for large files.

Which is a good argument for having a switch to control this.

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert at greenie.muc.de
fax: +49-89-35655025                        gert.doering at physik.tu-muenchen.de



More information about the openssh-unix-dev mailing list