I have a cron job that is just running rsync on a particular directory.
When I run the rsync command itself sudo rsync -av --delete /directory1 /directory2
, it runs without issue and does exactly as intended.
When the Cron job runs - I see it in /var/log/syslog.1 and it says this (summarized):
Mar 12 11:38:01 ip-xx-xx-xx-xxx CRON[4970]: (root) CMD (rsync --delete /my/directory /backup/directory)
Mar 12 11:38:01 ip-xx-xx-xx-xxx CRON[4970]: (CRON) info (No MTA installed, discarding output)
But the files are not in the backup directory (so it's not completing).
Does that second statement about 'No MTA installed
' prevent the completion of the cron job? What is the best way to get that cron job to complete and get rid of the MTA error?
I found this answer but it doesn't say if that prevents the job from finishing.
cron
is configured to send an email and can't?