Added email capabilities.

Added lastlog, logs are now appended to .log and .log.last are send per email.
This commit is contained in:
BuildTools
2021-03-21 23:33:31 +01:00
parent bb83eb4ed8
commit 7fdd30a47e
4 changed files with 83 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ LOGPATH="/var/log/borg"
mkdir -p $LOGPATH
export LOGFILE="$LOGPATH/backup_docker.log"
export LASTLOG="$LOGPATH/backup_docker.log.last"
## Path to private-key
PRIVATE_KEY_FILE="./id_ed25519"