#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH find /www/wwwroot/www.***com/var -mtime +1 -name "*.*" -exec rm -rf {} \; -mtime +1 -name "*.*" -exec rm -rf {} \; echo "----------------------------------------------------------------------------" endDate=`date +"%Y-%m-%d %H:%M:%S"` echo "★[$endDate] Successful" echo "----------------------------------------------------------------------------"
BT面板清理VAR目录下有1天以上的文件