From 0e009e1bb9d1794f439b5e953f50728e45aa0874 Mon Sep 17 00:00:00 2001 From: Josh North Date: Thu, 22 Oct 2015 08:43:09 -0400 Subject: [PATCH] Update cleanup.sh --- cleanup.sh | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/cleanup.sh b/cleanup.sh index 0fbb8d6..2040352 100644 --- a/cleanup.sh +++ b/cleanup.sh @@ -1,9 +1,16 @@ #!/bin/bash -# /usr/local/bin/cleanup.sh -# ops.point808.com -# Quick and dirty script to clear disk space (log files, apt cache, etc etc) - useful if creating a machine template. -# -------------------------------------------------- -# Nothing to change below here + +# AUTHOR: Josh North +# EMAIL: josh.north@point808.com +# BRIEF: Quick and dirty script to clear disk space (log files, apt cache, etc). +# This is most useful if creating a machine template or preparing for backups. +# USAGE: Put this file in /usr/local/bin/cleanup.sh or wherever you prefer is ok. +# Make sure to chmod +x and make it executable. Run from command line at will, +# or call from a pre-backup script. + +# SETTINGS: + +# -------------------- NOTHING TO CHANGE BELOW THIS LINE -------------------- # Delete old config files apt-get purge $(dpkg -l|grep "^rc"|awk '{print $2}') # Clean cache