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