Suggested fix for --backup not logging 'deleted' files
jr-list-rsync at quo.to
Wed May 29 16:18:02 EST 2002
In rsync 2.5.5, I've noticed that when --backup is used along with
the --delete and -v options, no message is printed when an obsolete file is
'deleted' from the destination directory (or more precisely, moved away and
Apart from resorting to -vv (which is total overkill), apparently the only
way to learn about such 'deleted' files is to manually look over the '~'
files after running rsync, or the files in the backup directory
(when --backup-dir is used). This can be very tedious work.
So, I think 'deleted' files should be logged in the same manner as
when --backup is not used.
Attached is a simple 3-line patch which fixes that. I've designed it to work
like non-"--backup" file deletion in that:
- The log message says the same thing: "deleting %s\n"
(so that scripts parsing the output can look for the same keyword)
- The message is printed *after* the file is backed up
- The message is only printed if the backup was successful
Could this be included in the next version?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 460 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20020529/c15ca9f1/backup-delete-verbose.obj
More information about the rsync