What would be the simplest way to check if a remote SSH rsync fails from the host?
I don’t care if the file couldn’t be found, if a connection couldn’t be established, or if RSYNC’s dog died and had to attend its funeral. How would I specify:
if RSYNC fails, do something?
EDIT: RSYNC SSH not Daemon.
you could create a bash script, such as: