changed sender name

This commit is contained in:
Hendrik Schutter 2021-12-26 17:54:40 +01:00
parent 988ec97833
commit 8b31476644
1 changed files with 16 additions and 15 deletions

View File

@ -1,29 +1,29 @@
#! /bin/bash #! /bin/bash
### GENERAL SETTINGS ### ### GENERAL SETTINGS ###
DEBUG="true" DEBUG="true" #don't send mail if in debug mode
timestampFolder="index" #folder for reading timestamp timestampFolder="index" #folder for reading timestamp
backupFolder="./backups" #directory that contains all repos backupFolder="/mnt/hdd/backups/" #directory that contains all repos
######################## ########################
### eMail ### ### eMail ###
receiverEmail="admin@coptersicht.de" receiverEmail="localhorst@mosad.xyz"
senderEmail="autobackupwatchdog@coptersicht.de" senderEmail="____#@mosad.xyz"
senderName="AutoBackup Watchdog" senderName="AutoBackupWatchdog" #no spaces
######################## ########################
######### REPO SETTINGS ######### ######### REPO SETTINGS #########
repos_name[0]=" first backup repo" repos_name[0]="my home server"
repos_directory[0]="first_repo" repos_directory[0]="homeserver/"
repos_interval[0]=21600 #sec repos_interval[0]=21600 #sec
repos_interval_tolerance[0]=10 #% repos_interval_tolerance[0]=10 #%
#repos_name[1]="second backup repo" #repos_name[1]="another backup repo"
#repos_directory[1]="second_repo" #repos_directory[1]="another_repo"
#repos_interval[1]=21600 #sec #repos_interval[1]=21600 #sec
#repos_interval_tolerance[1]=10 #% #repos_interval_tolerance[1]=10 #%
#repos_name[2]=" another backup repo" #repos_name[2]="another backup repo"
#repos_directory[2]="another_repo" #repos_directory[2]="another_repo"
#repos_interval[2]=21600 #sec #repos_interval[2]=21600 #sec
#repos_interval_tolerance[2]=10 #% #repos_interval_tolerance[2]=10 #%
@ -91,8 +91,8 @@ Content-Type: text/html; charset="utf8
</div> </div>
</body> </body>
<footer> <footer>
<p>Version: 0.2</p> <p>Version: 0.2.1</p>
<p>Author: <a href="mailto:hendrik.schutter@coptersicht.de">hendrik.schutter@coptersicht.de</a></p> <p>Author: <a href="mailto:localhorst@mosad.xyz">localhorst@mosad.xyz</a></p>
</footer> </footer>
EOL EOL
@ -124,7 +124,7 @@ EOL
cat >> mail_content.txt <<EOL cat >> mail_content.txt <<EOL
Subject: AutoBackup Failure "${repos_name[i]}" Subject: AutoBackup Failure "${repos_name[i]}"
From: $senderEmail From: $senderEmail
Content-Type: text/html; charset="utf8 Content-Type: text/html; charset="utf8"
<head> <head>
<style> <style>
h1{ h1{
@ -161,8 +161,8 @@ Content-Type: text/html; charset="utf8
</div> </div>
</body> </body>
<footer> <footer>
<p>Version: 0.2</p> <p>Version: 0.2.1</p>
<p>Author: <a href="mailto:hendrik.schutter@coptersicht.de">hendrik.schutter@coptersicht.de</a></p> <p>Author: <a href="mailto:localhorst@mosad.xyz">localhorst@mosad.xyz</a></p>
</footer> </footer>
EOL EOL
@ -176,3 +176,4 @@ EOL
done done
echo " " echo " "
echo "Finished" echo "Finished"