Skip to content

sebastian13/zabbix-template-restic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Zabbix Template: Restic Backup

This script logs restic backup tasks to Zabbix.

Screenshots

Latest Data

Latest Data

Triggers

Triggers

Requirements

  • Restic
  • Zabbix-Sender
  • python3
  • python3-pip
  • python3: humanfriendly

How to Use

Example: Backup

#!/bin/bash

# Enable Pipefail for exit-code logging
set -o pipefail

# Run backup as usual, but save result
restic backup /root \
	| tee /var/log/restic/latest-backup.log

# send logs to zabbix
source /etc/restic/log-backup.sh

Example: Check

#!/bin/bash

# Enable Pipefail for exit-code logging
set -o pipefail

# Run check as usual, but save result
restic check \
	| tee /var/log/restic/latest-check.log

# send detailed logs to zabbix
source /etc/restic/log-check.sh

About

Monitoring restic backups

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages