Deleting files that are older than a week
2007-12-24 23:57:00
sorry if this is an off topic question. How can I remove all files/dirs
in a directory that are older than a week. I have setup cron to make a
database backup every night. Now I want to automatically delete (cron
script) all backup files that are older than a week, thus always keeping
the latest 7 backup files. I looked into the man page of rm but found
nothing. Where do I have to look? An example would be even better.
Thanks a lot in advance!
Regards,
Andreas
Comments
Got something to say?
You must be logged in to post a comment.

