I am setting up an hourly rsync job and want a simple log for that job. If the rsync succeeds without errors, I would only like the following line to be added to the log
[TIMESTAMP] [X] files transferred
(or similar). If there is an error syncing any of the files, I would like one line per failed file with filename and error message.
I have tried --log-file
but that lists all the files (e.g., >f+++++++++
for created files) and I have not been able to figure out how to remove the file itemization. --stats
gives too much statistics.