User Tools

Site Tools


start:cron

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
start:cron [2016/07/19 16:49]
andre
start:cron [2018/01/16 16:16] (current)
andre
Line 4: Line 4:
  
   * This script sends an email if the total size of the root directory is greater than 40GB: <​code>​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</​code>​   * This script sends an email if the total size of the root directory is greater than 40GB: <​code>​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</​code>​
-  * This script forces a folder of cached product images to be deleted: <​code>​rm -rf /​chroot/​home/​picnicti/​picnictime.com/​html/​media/​catalog/​product/​cache/​2/​*</​code>​+  * This script forces a folder of cached product images to be deleted: ​<​code>​rm -rf /​chroot/​home/​picnicti/​picnictime.com/​html/​media/​catalog/​product/​cache/​1/​*</​code>​<​code>​rm -rf /​chroot/​home/​picnicti/​picnictime.com/​html/​media/​catalog/​product/​cache/​2/​*</​code>​
  
start/cron.1468972180.txt.gz · Last modified: 2016/07/19 16:49 by andre