mtime removing exports Linux

  • From: P D <pdba1966@xxxxxxxxxxx>
  • To: <oracle-l@xxxxxxxxxxxxx>
  • Date: Mon, 22 Aug 2011 09:00:36 -0400

I only want to keep one copy of an export on the server.   I have got this in a 
script on a Linux RHEL5 server.   It saves 3 days though instead of 1 and even 
if I put mtime 0 it still saves more than one.    What is wrong with it?  
 
find $EXPORT_DIR -name "*" -mtime +1 -exec rm -rf {} \; > /dev/null             
                          

Other related posts: