From 187e745294ea2422ad08826471dd8292b51fe446 Mon Sep 17 00:00:00 2001 From: Adam Rabjerg Date: Mon, 22 Mar 2021 21:16:16 +0100 Subject: [PATCH] README, mail_template.py and LASTLOG environment variable. --- README.MD | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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