No commit activity in last 3 years
No release in over 3 years
Sensu restic plugins
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 2.2, < 2.3.0
~> 0.10
~> 12.0
~> 3.2
~> 3.4
~> 0.49.0
~> 2.36.1
~> 0.9.11

Runtime

 Project Readme

sensu-plugins-restic

Build Status Gem Version Dependency Status Community Slack

Functionality

Files

  • bin/check-restic-snapshot.rb

Usage

check-restic-snapshot

Checks the presence and the age of the latest restic backup snapshot.

By default it expects the restic binary to be installed at /usr/bin/restic. Repository location and password are passed into the check through the environment variables $RESTIC_REPOSITORY and $RESTIC_PASSWORD_FILE. Please check the restic documentation for details.

This example checks the repository configured through the environment variables mentioned before. It warns if the last backup is older than 1 day + 1 hour, and becomes critical after 2 days + 1 hour:

check-restic-snapshot.rb -w 90000 -c 176400

If your restic binary is in a different location and/or you prefer to pass repository location and password via parameters, use the -p option to specify how the restic binary is invoked:

check-restic-snapshot.rb -w 90000 -c 176400 -p '/opt/bin/restic -r /mnt/backups -p /etc/restic/password'

The --missing-status allows you to specify the check's result if no backup has been created so far (defaults to critical).

check-restic-snapshot.rb -w 90000 -c 176400 --missing-status warning

Installation

Installation and Setup

Notes