====== PicnicTime.com Cron Jobs ====== The following cron jobs are set up in Nexcess SiteWorx to control the amount of storage space used for our websites: * This script sends an email if the total size of the root directory is greater than 40GB: if [`du -sh /chroot/home/picnicti | awk '{ print $1 }' | cut -d'G' -f1` -gt 40]; then echo "GB used: `du -sh /chroot/home/picnicti | awk '{ print $1 }' | cut -d'G' -f1`" | mail -s "Running out of storage for PicnicTime.com" andre@picnictime.com; fi * This script forces a folder of cached product images to be deleted: rm -rf /chroot/home/picnicti/picnictime.com/html/media/catalog/product/cache/1/*rm -rf /chroot/home/picnicti/picnictime.com/html/media/catalog/product/cache/2/*