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