vi scriptable delete-log.sh
follows:
Find / Home / ctbackup / -name orabackup- -mtime +2 -exec RM -rf {} \;
Find / Home / ctbackup / -name OilDaQingAllinoneM- -mtime +2 -exec rm -rf {} \;
Set the script execution time: 3:00 daily execution of the script command
crontab -e
0 3 * /home/delete-log.sh