Skip to content

Instantly share code, notes, and snippets.

View colindaven's full-sized avatar

Colin Davenport colindaven

  • Germany
View GitHub Profile
@colindaven
colindaven / checkDisk.sh
Last active October 25, 2021 10:11 — forked from brimur/checkDisk.sh
Cron script to control
# Name: checkDisk.sh
# Created by: Originally by Brimur, simple rewrite for sftp by colindaven
# Created: Nov 26th 2019, Oct 2021
# This script is used to control sftp jobs based on available disk space.
#
# This should be run as a cronjob (every minute) on the server/computer running sftp
#
# If you use a download manager tell it to add jobs as PAUSED
#
# - If disk is nearly full (limit) then stop all sftp jobs - kill
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.