MCPcopy Index your code
hub / github.com/Chronial/snapraid-runner

github.com/Chronial/snapraid-runner @v0.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.5 ↗ · + Follow
9 symbols 36 edges 1 files 2 documented · 22%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Snapraid Runner Script

This script runs snapraid and sends its output to the console, a log file and via email. All this is configurable.

It can be run manually, but its main purpose is to be run via cronjob/windows scheduler.

It supports Windows, Linux and macOS and requires at least python3.7.

How to use

  • If you don’t already have it, download and install the latest python version.
  • Download the latest release of this script and extract it anywhere or clone this repository via git.
  • Copy/rename the snapraid-runner.conf.example to snapraid-runner.conf and edit its contents. You need to at least configure snapraid.executable and snapraid.config.
  • Run the script via python3 snapraid-runner.py on Linux or py -3 snapraid-runner.py on Windows.

Features

  • Runs diff before sync to see how many files were deleted and aborts if that number exceeds a set threshold.
  • Can create a size-limited rotated logfile.
  • Can send notification emails after each run or only for failures.
  • Can run scrub after sync

Changelog

Unreleased

  • Remove (broken) python2 support
  • Fix snapraid output encoding handling (by hyyz17200, PR-31)

v0.4 (17 Aug 2019)

  • Add compatibility with python3 (by reed-jones)
  • Add support for running snapraid touch (by ShoGinn, PR-11)
  • Add SMTP TLS support

v0.3 (20 Jul 2017)

  • Limit size of sent emails

v0.2 (27 Apr 2015)

  • Fix compatibility with Snapraid 8.0
  • Allow disabling of scrub from command line

v0.1 (16 Feb 2014)

  • Initial release

Core symbols most depended-on inside this repo

finish
called by 7
snapraid-runner.py
snapraid_command
called by 4
snapraid-runner.py
tee_log
called by 2
snapraid-runner.py
send_email
called by 1
snapraid-runner.py
load_config
called by 1
snapraid-runner.py
setup_logger
called by 1
snapraid-runner.py
main
called by 1
snapraid-runner.py
run
called by 1
snapraid-runner.py

Shape

Function 9

Languages

Python100%

Modules by API surface

snapraid-runner.py9 symbols

For agents

$ claude mcp add snapraid-runner \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact