From dbaee74d989d7cf5b57fd57e8a53e3e30337f7e1 Mon Sep 17 00:00:00 2001 From: David Rotermund Date: Tue, 16 Jul 2024 16:36:24 +0200 Subject: [PATCH] Update README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index d660f91..2ce170a 100644 --- a/README.md +++ b/README.md @@ -42,4 +42,23 @@ ufw enable ufw status verbose docker run hello-world + +# Mail +# Add root to the /etc/alias file and add the msmtprc file to /etc +apt -y install msmtp msmtp-mta mailutils +vi /etc/msmtprc +chmod 644 /etc/msmtprc +touch /var/log/msmtp.log +chmod 666 /var/log/msmtp.log +# ln -s /usr/bin/msmtp /usr/sbin/sendmail + +# echo "Test message" | mail -s "Test subject" root +``` + +Don't forget to set up the cron job for the backup: + +``` +crontab -e + +0 0 * * * /bin/bash /root/backup/make_backup.sh ```