#!/bin/csh -f # # announce ourselves # /bin/echo $0 ":" `/bin/date` # # cleanup DB/2 archives... # /bin/echo "Cleaning up DB/2 archives older then 24 hours..." /bin/find /home/archive -name 'ARCHIVE.0.*' -ctime +1 -exec ls -l {} \; /bin/find /home/archive -name 'ARCHIVE.0.*' -ctime +1 -exec rm -f {} \; # # cleanup adsm catalog archives # /bin/echo "Cleaning up ADSM catalog archives greater then 1 days back..." /bin/find /home/archive/adsm -name 'adsmfiles_*' -ctime +1 -exec ls -l {} \; /bin/find /home/archive/adsm -name 'adsmfiles_*' -ctime +1 -exec rm -f {} \; # # cleanup /adsmfiles # /bin/echo "Cleaning up /adsmfiles ADSM Catalog archives greater then 1 days back..." /bin/find /adsmfiles -name '*.DBB' -ctime +1 -exec ls -l {} \; /bin/find /adsmfiles -name '*.DBB' -ctime +1 -exec rm -f {} \; # # Exit #