sorry to bump such an old topic but i'm having a problem with this deleting file that have very old dates
like lets say i download a file onto my server and it had a modification date of xx/xx/2009 and my script is set to "-mtime +7" it will of course delete it but it isn't REALLY that old... can something be done about this?
full script:
(will delete ALL files bigger then 1mb and older then 7 days in the folder '/home/folder')
Code:
find /home/folder -name "*" -type f -mtime +7 -size +1M -exec rm {} \;