Erase the source file open; specify a tempfile name option

Wayne Davison wayne at blorf.net
Mon May 21 08:23:28 EST 2001


On Sun, 20 May 2001 mouring at etoh.eviladmin.org wrote:
> Rsync with --delete-after and -T options.

FYI, with rsync --delete-after just delays the deletion on the
*destination* side (of files not found on the source side) until after
all the files have been transferred.  You need to patch the source with
my "--move-files" option to actually move files between machines, and
you don't need to use the -T option because rsync uses a temp file by
default (unless you want to force the directory where all the temp files
get put).

So yes, for updating files, using rsync is definitely much better than
scp.  For moving files it seems silly to use a utility that optimizes
the transfer of data through a remote-diff algorithm, but if scp isn't
going to support this, hopefully the next release of rsync will.

..wayne..




More information about the openssh-unix-dev mailing list