#!/bin/csh -fv # # announce ourselves... # /bin/echo "-----------------------------------------------------------------" /bin/echo "nightly_cleanup.sh: starting at" `/bin/date`"..." /bin/echo "-----------------------------------------------------------------" # # purge tmp files older then 7 days # /bin/find /tmp -mtime +7 -ls -exec /bin/rm {} \; # # purge acif1 files older then 7 days # /bin/find /arsacif/acif1 -mtime +7 -ls -exec /bin/rm {} \; # # purge apache cache files older then 7 days # /bin/find /var/html/htdocs/cache -mtime +7 -ls -exec /bin/rm {} \; # # purge /var/preserve files older then 7 days # /bin/find /var/preserve -mtime +7 -ls -exec /bin/rm {} \; # ###### # The following purge criteria are from Joel Kling x3-7584 - K. Inscoe 6/3/99 ###### # # purge /arspdd/order files older then 4 days with the exception of # pwrtool.* files in that directory. # #/bin/find /arspdd/order -name 'pwrtool.*' -o -mtime +7 -ls -exec /bin/rm {} \; /bin/find /arspdd/order -name 'pwrtool.*' -o -mtime +4 -ls -exec /bin/rm {} \; # # purge /arspdd/data files & directories older then 4 days # /bin/find /arspdd/data -mtime +4 -ls -exec /bin/rm {} \; /bin/find /arspdd/data -mtime +4 -ls -exec /bin/rmdir {} \; # # purge /arspdd/label files older then 4 days # /bin/find /arspdd/label -name '*.txt' -mtime +4 -ls -exec /bin/rm {} \; # # exit # exit