cross platform rsync avz lists all directory names in tree

Matt McCutchen hashproduct+rsync at gmail.com
Tue May 23 14:03:52 GMT 2006


On Tue, 2006-05-23 at 10:18 +0100, Peter Risdon wrote:
> Can anyone advise how to limit the output to just files/directories that 
> have been added, removed (if --delete is used) or changed when running 
> across platforms like this?

Maybe you could use -i (--itemize-changes).  That will produce lines
like the following for a file with unchanged content but a lot of
changed attributes:

.f..tpog. myfile

Then you could use grep -v '^\.' to filter out lines beginning with a
dot, i.e., those indicating that only attributes were changed.  If file
content is changed or a regular file is created, the line will begin
with < or >.  If a non-regular file is created, the line will begin with
c.  If something is deleted, the line will begin with *.

Matt McCutchen



More information about the rsync mailing list