View Single Post
  #1   (View Single Post)  
Old 30th May 2008
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Question Delete Files By Schedule

Hi,

I am currently in the process of setting up a temporary file storage server.

I am trying to have a 'script' running which will automatically remove files older than X number of days.

File upload/retrieval is done via FTP. So the script will need to be run separately of this. Basically the file system will look something like this:

[FTP ROOT] -> [username] -> uploaded files and directories

Ideally I would like to a) remove all files older than X days and than after Y remove all files and directories including the [username].

I think I know how to do this (more or less) however I would like to know from others what might be the best way of doing this.

Simplicity is ideal. I would also prefer not to have to install additional software unless its really worth it.

Your help is appreciated. Thanks
Reply With Quote