Update cleanup.sh
This commit is contained in:
parent
76fd957379
commit
0e009e1bb9
17
cleanup.sh
17
cleanup.sh
@ -1,9 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# /usr/local/bin/cleanup.sh
|
|
||||||
# ops.point808.com
|
# AUTHOR: Josh North
|
||||||
# Quick and dirty script to clear disk space (log files, apt cache, etc etc) - useful if creating a machine template.
|
# EMAIL: josh.north@point808.com
|
||||||
# --------------------------------------------------
|
# BRIEF: Quick and dirty script to clear disk space (log files, apt cache, etc).
|
||||||
# Nothing to change below here
|
# 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
|
# Delete old config files
|
||||||
apt-get purge $(dpkg -l|grep "^rc"|awk '{print $2}')
|
apt-get purge $(dpkg -l|grep "^rc"|awk '{print $2}')
|
||||||
# Clean cache
|
# Clean cache
|
||||||
|
Loading…
Reference in New Issue
Block a user