patch for --delete-local
jw at pegasys.ws
Sat Sep 20 06:10:31 EST 2003
On Fri, Sep 19, 2003 at 03:16:44PM -0400, Dave Seff wrote:
> I had a situation where I needed to remove a file locally after I
> transferred it to a remote machine. I modified rsync and added the
> --delete-local option.
> I am now submitting my changes back to the community in case anyone else
> needs this option. enjoy
> p.s. I am not subscribed to the list but you can reply to me directly at
> dseff at advisen.com.
Good of you to send the patch. A better name for the option
would be delete-src or the more accurate delete-sent because
would delete remote files if doing a pull.
Aside from other factors this particular patch strikes me as
risky because there is no conformation of successful syncing.
If for some reason (full disk for instance) a file transfer
fails the source is still deleted.
There was a brief thread on this same issue with the subject
"Revisiting two old issues" a few weeks ago. I'd suggest
you check that out.
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync