Added email capabilities.
Added lastlog, logs are now appended to .log and .log.last are send per email.
This commit is contained in:
@@ -16,7 +16,7 @@ fi
|
||||
|
||||
## Setup that everything is written to log
|
||||
|
||||
exec > >(tee -i ${LOGFILE})
|
||||
exec > >(tee -ia ${LOGFILE} | tee -i ${LASTLOG})
|
||||
exec 2>&1
|
||||
|
||||
## Checks that a few important thins is set.
|
||||
@@ -42,4 +42,4 @@ borg create -v --stats \
|
||||
|
||||
echo "######### Backup Finished $(date) #########"
|
||||
|
||||
|
||||
/usr/bin/env python3 ./mail_template.py
|
||||
|
||||
Reference in New Issue
Block a user