Watchdog for restic backup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hendrik Schutter dbb15d84b5
updated to mailsend-go
7 months ago
.gitignore backup dir stored in variable; eMail settings in variable 3 years ago
CheckAutoBackup.service added systemd service files and cronjob example 9 months ago
CheckAutoBackup.timer added systemd service files and cronjob example 9 months ago
LICENSE Initial commit 3 years ago updated to mailsend-go 7 months ago
Screenshot_20200425_112352.png screenshot of email 3 years ago updated to mailsend-go 7 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.

Screenshot of email

How does it work?

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.


  • runs just with bash
  • no restic authentication needed
  • multiple repos
  • individual interval for each repo
  • custom email server via mailsend
  • loud alarm buzzer via FTDI_simple_alarm

Planned Features

  • Able to determine a failed restic repo task from a successful task


1. download the

2. chmod +x

3. install mailsend

4. edit settings in

DEBUG="true" #true --> dont send email
timestampFolder="index" #folder for reading timestamp
backupFolder="./backups" #directory that contains all repos


5. edit repo settings in

repos_name[0]=" first backup repo"
repos_directory[0]="first_repo" #repo in backupFolder
repos_interval[0]=21600 #sec
repos_interval_tolerance[0]=10 #%

6. install crontab or systemd-timer

For systemd see CheckAutoBackup.service and CheckAutoBackup.timer

For corntab see

5 2,8,14,20 * * * /root/ >/dev/null 2>&

7. optional install FTDI simple alarm


uncomment line 167 in

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