fixed formatting
This commit is contained in:
parent
96bddad392
commit
25eab974d1
31
README.md
31
README.md
|
@ -18,10 +18,11 @@ The script monitors the backend of a restic backup. The bash script is executed
|
||||||
* Able to determine a failed restic repo task from a successful task
|
* Able to determine a failed restic repo task from a successful task
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
1. download the check_AutoBackup.sh
|
#### 1. download the check_AutoBackup.sh
|
||||||
2. chmod +x check_AutoBackup.sh
|
#### 2. chmod +x check_AutoBackup.sh
|
||||||
3. install ssmtp
|
#### 3. install ssmtp
|
||||||
4. nano /etc/ssmtp/ssmtp.conf
|
#### 4. nano /etc/ssmtp/ssmtp.conf
|
||||||
|
|
||||||
```UseSTARTTLS=YES
|
```UseSTARTTLS=YES
|
||||||
FromLineOverride=YES
|
FromLineOverride=YES
|
||||||
root=
|
root=
|
||||||
|
@ -29,23 +30,29 @@ mailhub=mail.yourmailserver.tld:587
|
||||||
AuthUser=mailuser@maildomain.tld
|
AuthUser=mailuser@maildomain.tld
|
||||||
AuthPass=yourmailuserpassword
|
AuthPass=yourmailuserpassword
|
||||||
```
|
```
|
||||||
5. nano /etc/ssmtp/revaliases
|
#### 5. nano /etc/ssmtp/revaliases
|
||||||
```root:mailuser@maildomain.tld:mail.yourmailserver.tld:587
|
|
||||||
```
|
```
|
||||||
6. edit settings in check_AutoBackup.sh
|
root:mailuser@maildomain.tld:mail.yourmailserver.tld:587
|
||||||
DEBUG="true"
|
```
|
||||||
|
|
||||||
|
#### 6. edit settings in check_AutoBackup.sh
|
||||||
|
|
||||||
|
```
|
||||||
|
DEBUG="true" #true --> dont send email
|
||||||
timestampFolder="index" #folder for reading timestamp
|
timestampFolder="index" #folder for reading timestamp
|
||||||
backupFolder="./backups" #directory that contains all repos
|
backupFolder="./backups" #directory that contains all repos
|
||||||
...
|
|
||||||
receiverEmail="mailuser@maildomain.tld"
|
receiverEmail="mailuser@maildomain.tld"
|
||||||
senderEmail="mailuser@maildomain.tld"
|
senderEmail="mailuser@maildomain.tld"
|
||||||
senderName="AutoBackup Watchdog"
|
senderName="AutoBackup Watchdog"
|
||||||
```
|
```
|
||||||
7. edit repo settings in check_AutoBackup.sh
|
|
||||||
|
#### 7. edit repo settings in check_AutoBackup.sh
|
||||||
|
|
||||||
```
|
```
|
||||||
repos_name[0]=" first backup repo"
|
repos_name[0]=" first backup repo"
|
||||||
repos_directory[0]="first_repo"
|
repos_directory[0]="first_repo" #repo in backupFolder
|
||||||
repos_interval[0]=21600 #sec
|
repos_interval[0]=21600 #sec
|
||||||
repos_interval_tolerance[0]=10 #%
|
repos_interval_tolerance[0]=10 #%
|
||||||
```
|
```
|
||||||
8. install crontab or systemd-timer
|
#### 8. install crontab or systemd-timer
|
Loading…
Reference in New Issue