zip -r zipfile.zip directoryToZip -x directoryToZip /subdirectoryToExclude/* directoryToZip/SecondSubdirectoryToExclude /*
du -a ./ | sort -n -r | head -n 20
Its always searching for the directories with the most diskusage from the actual directory, sorted by usage. It shows the first 20 Lines
Simple bash snippet to check if a service is running, if not -> send a mail to root. In this snippet
if ps ax | grep -v grep | grep $SERVICE > /dev/null
echo "$SERVICE service running, everything is fine"
echo "$SERVICE is not running, try to start it."
sudo service $SERVICE start
echo "$SERVICE is not running!" | mail -s "$SERVICE down" root