diff --git a/README.MD b/README.MD index a3b3c42..777d90a 100644 --- a/README.MD +++ b/README.MD @@ -67,7 +67,16 @@ Todo ### 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