June 2020

sending mail after successful backup

In case you want cron to tell you that your backup job has been finished you can use MSMTP to send you the logs for your cronjob via e-mail: After install with apt-get install mstmp, setup aliases in your /etc/aliases file: Then make sure your config in /etc/msmtprc looks something like this: Then you are ready to test: To make the finished cron job send the mail add something like the following to your /etc/crontab or crontab -e

Continue reading...