delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/20/08:43:01

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20000720124201.9314.qmail@web124.yahoomail.com>
Date: Thu, 20 Jul 2000 05:42:01 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: Getting back deleted files
To: Ben Lawrence <Ben DOT Lawrence AT cmr DOT uq DOT edu DOT au>
Cc: "cygwin AT sources DOT redhat DOT com" <cygwin AT sources DOT redhat DOT com>
MIME-Version: 1.0

--- Ben Lawrence <Ben DOT Lawrence AT cmr DOT uq DOT edu DOT au> wrote:
> > --- Ben Lawrence <Ben DOT Lawrence AT cmr DOT uq DOT edu DOT au> wrote:
> > > Hello,
> > > I have accidently used the rm *.* command in cygwin1.1.0 on NT.
> > > Is there any chance of getting back my work?
> > > thanks,
> > > Ben
> > >
> 
> Hello again,
> I think it would be a real neat idea to modify the rm.exe so that
> rm file.xxx
> utility is actually
> mv file.xxx c:/cygwin/tmp
> 

Ain't unix like, so it ain't going to happen.  So why don't *you* just `mv
file.xxx c:/cygwin/tmp' instead of `rm file.xxx'.  That will always work
assuming c:/cygwin/tmp/ exists.

> Also, whenever rm is invoked it would check the current date and the date of
> all
> the files in the c:/cygwin/tmp directory.  If all the files have yesterday's
> date
> or earlier, it would delete that whole c:/cygwin/tmp directory.  That way,
> any
> deleted files would be saved for at least a day.
> regards,

You can use the find command to do this.  Set it up as a cron job and voila
you're in luck.

Regards,

=====
---
   Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <http://gw32.freeyellow.com/>
           __Minimalist GNU for Windows__
  Mingw32 List: <http://www.egroups.com/group/mingw32/>
    Mingw Home: <http://www.mingw.org/>

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019