copy file upon --delete possible?
Julian
linux at prisma.com.mt
Wed Mar 28 13:51:26 GMT 2007
Hi all, I have a particular request:
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.
The path of the latter may be hardcoded and it is not important to
retain info about original path etc..
Not sure whether --backup or some similar option can do this just for
deleted files... I was looking through the source to see if this can be
hard-coded, and it seems that the function "delete_item" is where it
should be done.. specifically in "do_unlink", where one could hard-code
a "copy_file" to a fixed trash directory before unlink...
Any suggestions??
Cheers
Julian
More information about the rsync
mailing list