DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 30th May 2008
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Thanked 0 Times in 0 Posts
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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD console delete key graudeejs FreeBSD General 4 24th August 2008 01:37 PM
Cannot delete it.... graudeejs FreeBSD General 9 20th July 2008 12:45 PM
Delete Files By Schedule Continued plexter OpenBSD General 4 28th June 2008 03:43 AM
How to delete account? khdf Feedback and Suggestions 5 9th May 2008 09:05 PM


All times are GMT. The time now is 08:11 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick