This script runs snapraid, and sends it 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.
- If you don’t already have it, download and install the latest python 3.
- Download the latest release of this script and extract it anywhere or clone this repository via git.
- Copy/rename the
snapraid-runner.conf.example
tosnapraid-runner.conf
and edit its contents. You need to at least configuresnapraid.exectable
andsnapraid.config
. - Run the script via
python snapraid-runner.py
.
- Runs
diff
beforesync
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
aftersync
- Can force sync despite delete threshold
- Add support for running
snapraid touch
(by ShoGinn, PR-11) - Add SMTP TLS support
- Forked by Maleesh
- Limit size of sent emails
- Fix compatibility with Snapraid 8.0
- Allow disabling of scrub from command line
- Initial release