tags:

views:

61

answers:

1

When rsync prints out the details of what it did for each file (using one of the verbose flags) it seems to include both files that were updated and files that were not updated. For example a snippet of my output using the -v flag looks like this:

rforms.php is uptodate
robots.txt is uptodate
sorry.html
thankyou.html is uptodate

I'm only interested about the files that were updated. In the above case that's sorry.html. It also prints out directory names as it enters them even if there is no file in that directory that is updated. Is there a way to filter out uptodate files and directories with no updated files from this output?

A: 

You can pipe it through grep:

rsync (your options here) | grep -v 'uptodate'
Jeff