copy file upon --delete possible?

Wayne Davison wayned at
Wed Mar 28 21:27:48 GMT 2007

On Wed, Mar 28, 2007 at 03:51:26PM +0200, Julian wrote:
> I was asked whether when --delete is specified on the client, the
> daemon can, instead of delete the file, move it to a "trash"
> directory.

That's what the --backup option will do when a --backup-dir is
specified.  However, it also copies all changed files into the
backup hierarchy as well.  There is a diff in the patches dir
named backup-dir-dels.diff that allows you to separate deletions
from updated files.


More information about the rsync mailing list