[97733] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Is there a 'trashcan' type of application for RH5.0?

daemon@ATHENA.MIT.EDU (Bob Taylor)
Wed Nov 4 18:36:46 1998

From: Bob Taylor <brtaylor@inreach.com>
To: redhat-list@redhat.com
In-reply-to: Your message of "Wed, 04 Nov 1998 09:44:00 GMT."
             <AE2FA63101332D00@c2gate.tcom.co.uk> 
Date: Wed, 04 Nov 1998 14:48:54 -0800
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

In message <AE2FA63101332D00@c2gate.tcom.co.uk>, KThorpe writes:
> We are considering, after many long years of faithful service, the 
> retirement of our Novell server. The one thing we would miss is the fact 
> that Novell servers hold on to deleted files until the disk space is needed.
> 
> Is there an application to perform this sort of function, saving files in a 
> holding area until disk space runs out? Simply replacing rm with a shell 
> script isn't enough - we require this behaviour via mars_nwe or samba.

What I think I would do is modify the rm sources to mv/cp the file(s) to
a directory (trashcan). I would handle duplicate file names by prefixing
the path to the name replacing the '/' with another character ('!'). I
would then run a cron job deleting files in that directory according to
age.

Just a thought.

Bob

-- 
+---------------------------------------------------------------+
| Bob Taylor             Email: brtaylor@inreach.com            |
|---------------------------------------------------------------|
| Like the ad says, at 300 dpi you can tell she's wearing a     |
| swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you   |
| can tell it's painted on. I suppose at 2400 dpi you can tell  |
| if the paint is giving her a rash. (So says Joshua R. Poulson)|
+---------------------------------------------------------------+



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post