Quarterly delete files older than 3 months [message #453299] |
Wed, 28 April 2010 03:20 |
bongalegre
Messages: 2 Registered: April 2010 Location: Singapore
|
Junior Member |
|
|
Hi Guys,
I really hope you could help me I am just new in Oracle but my boss is forcing me to do scripting he said everything is available online. I tried to create but he said it was wrong maybe you can give me a helping hand.
This will be my crontab entry
#!/bin/sh
#* * 1 1,4,7,10 * /root/bin/OLP-Cleanup.sh
And this will be script run by OLP-Cleanup.sh
find /root/archive -mtime +90 -exec rm {} \;
He said this wil delete all the files in Archive?
Any suggestions? Thanks!
/bong
|
|
|
|