Skip to content

Instantly share code, notes, and snippets.

View tentious's full-sized avatar

tentious tentious

View GitHub Profile
@tentious
tentious / install_deletion_job.sh
Last active October 2, 2018 01:25 — forked from SippieCup/install_deletion_job.sh
Installer for script & cron job that automatically deletes older drives when free space goes under 5GB.
#!/bin/sh
# Create deletion script
if [ ! -d /data/cleardata ]
then
echo "Creating /data/cleardata folder"
mkdir /data/cleardata
else
echo "/data/cleardata folder already exists..."
fi