Browse Source

changed sender name

master
Hendrik Schutter 5 months ago
parent
commit
8b31476644
  1. 31
      check_AutoBackup.sh

31
check_AutoBackup.sh

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

Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close