On Wed, Apr 11, 2001 at 02:17:24AM -0700, Wayne Davison wrote:
> I wanted to be able to "move" files from server to server via rsync,
> so I've added a simple "--move-files" (-m) option to my copy of the
> source. The end result of this change is that any files that are
> actually copied from the sender to the receiver get removed by the
> sender (the code does not currently remove files that are found to be
> identical, but I might change that).
>
> Is there any general interest in a "move" option? If so, I'd be glad
> to work on a patch for the CVS version (which has changed a lot in the
> option parsing from the 2.4.6 version I'm currently using). One thing
> I haven't verified is if it is safe for a server to support the -m
> option or not (since I don't know enough about how the server setup
> works).
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.
At a minimum I would definitely not want it to be an option that could
be selected with a single letter.
- Dave Dykstra