I'm making a script to backup some stuff using crontab, is there anyway to tell if rsync actually needs to do something?
i.e. if [everything in destination is not already up to date]; then do something
else do nothing
I've tried using the exit state ($?), but that gives '0' if something was updated or not.
Something involving rsync --dry-run maybe?