I use rsync to create backups on an external hard drive. I usually run a dry-run first just to sanity check. Specifically, I will use
rsync -auvn path/to/source path/to/dest
However this prints all directories recursed into, regardless of whether or not it or any of its files need to be copied. Since I am backing up a large structure of files, this prints our hundreds of directories, and usually there are only a couple files that need to be copied. Thus this output is not ideal and requires me to dig through hundreds of lines of needless output to actually do my sanity check.
I would love to be able to tell it to print only the actual operations to be performed. My current workaround is to
| grep '\.', but obviously this isn't a perfect filter.
Is there any way to get rsync's dry-run mode to not print out directories?