Cron jobs send an email by default whenever they make output or errors. If you do scheduled tasks often, these emails can quickly become useless and fill up your inbox.
If you want to stop cron emails, you can send all output to /dev/null.
Add the following to the end of the cron command to stop emails from a cron job:
>/dev/null 2>&10 2 * * * /home/backup.sh >/dev/null 2>&1>/dev/null
Redirects all standard output (STDOUT) to /dev/null, which means it is thrown away.
2>&1
Sends all error output (STDERR) to the same place as STDOUT, so errors are also thrown away.
Because of this, there is no output, and cron won't send any emails.
Only use this if you are sure that the cron job is working right.
Use the following to keep error emails but hide normal output:
>/dev/nullTo fix a problem, temporarily turn off the redirection to get the output again.
If you don't know how to edit cron jobs or need help setting up scheduled tasks, get in touch with the Cyberin support team.