|
4 months ago | |
---|---|---|
.gitignore | 12 months ago | |
LICENSE | 12 months ago | |
README.md | 11 months ago | |
Screenshot_20200425_112352.png | 12 months ago | |
cleacheck_AutoBackup.sh | 4 months ago |
Watchdog for restic backup that are automatic triggered via an interval
TLDR: Bash script that emails you if your restic backup interval is overdue.
The script monitors the backend of a restic backup. The bash script is executed via cronjob or a systemd-timer periodically. The user sets an interval for each restic repo (e.g. your laptop-backup). This is the same interval as the one that triggers the automatic backup from your device. If your automatic backup failed (e.g. no Internet), there will be no changes in den repo. The script will notice that and emails you.
FromLineOverride=YES
root=
mailhub=mail.yourmailserver.tld:587
AuthUser=mailuser@maildomain.tld
AuthPass=yourmailuserpassword
root:mailuser@maildomain.tld:mail.yourmailserver.tld:587
DEBUG="true" #true --> dont send email
timestampFolder="index" #folder for reading timestamp
backupFolder="./backups" #directory that contains all repos
receiverEmail="mailuser@maildomain.tld"
senderEmail="mailuser@maildomain.tld"
senderName="AutoBackup Watchdog"
repos_name[0]=" first backup repo"
repos_directory[0]="first_repo" #repo in backupFolder
repos_interval[0]=21600 #sec
repos_interval_tolerance[0]=10 #%
uncomment line 117 in check_AutoBackup.sh