hookahmasta
IS-IT--Management
As a wet behind the ears admin, I need some help in terms of cycling archive files... Here's the situation...
A Cron job runs every morning that compresses our DB2 database into a archive file around 4 Gigs. It gets made, and gets copied to the NFS share of my main file server. I only need to keep copies from the previous 3 days. Is there a script that can look in the contents in that directory, find any files that are older than 3 days, and deletes them, since I don't need them anymore? If I'd placed that as a cron job, then older files that I don't need gets deleted automatically... I'm relatively new to scripting, so I need all the help I'd ned.
A Cron job runs every morning that compresses our DB2 database into a archive file around 4 Gigs. It gets made, and gets copied to the NFS share of my main file server. I only need to keep copies from the previous 3 days. Is there a script that can look in the contents in that directory, find any files that are older than 3 days, and deletes them, since I don't need them anymore? If I'd placed that as a cron job, then older files that I don't need gets deleted automatically... I'm relatively new to scripting, so I need all the help I'd ned.