In a bash script, I am using rsync to make an exact copy of a directory:
rsync --verbose --archive --update --delete \ ~/cat-pics/ \ ~/top-secret/
But how can I get feedback on whether or not anything was transferred? How can I know if any files were changed by that operation? In particluar, I wish to know if any files were added, changed, or deleted.
I see the
--stats option, but its output seems to be made for humans rather than bash scripts.