README, mail_template.py and LASTLOG environment variable.

This commit is contained in:
Adam Rabjerg
2021-03-22 21:16:16 +01:00
parent ded7406d40
commit 187e745294

View File

@@ -67,7 +67,16 @@ Todo
### mail_template.py ### mail_template.py
File containing email template as well as File containing email template as well as subject and list of email recievers.
```
recivers = ["example@example.com", "example2@example.com"]
subject = f"Backup on \"{HOSTNAME}\", for SERVICE complete."
```
Recivers is a python list of email addresses, a seperate email will be sent to each reciever.
Subject is the subjectline of the email being sent (surprise!).
It is made to be called by ```make_backup.sh``` and expects the LASTLOG environment variable to be set.
LASTLOG points to a a logfile containing only the result of the latest backup done.
### secrets.env ### secrets.env