log deletes with --log-format?
wayned at samba.org
Sat Feb 19 03:57:48 GMT 2005
On Tue, Feb 15, 2005 at 01:07:29PM +0100, Joost van den Broek wrote:
> Is there a possibility to log deletes as well when using the
> --log-format parameter?
This is not currently possible, however I have been improving rsync's
ability to output what is changing via some new --log-format items, and
decided that it would be useful to include the ability to log deletes as
well as transfers. The version currently in CVS allows this, but only
if (1) you're pulling data using the new version, or (2) pushing data
with the new version on both ends. Also, the delete-logging only occurs
if the log-format contains an escape that will allow the delete to be
distinguished from a file transfer -- i.e. (in the CVS version), this
means using %o (with now has a 3rd value for a deletion) or %i (a new
escape that displays what is changing about a file in an itemized list).
So, it will be possible to do what you want in 2.6.4.
More information about the rsync