delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/28/09:22:55

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <183c528b0801280622l3c822c92s1af36069a8c80c55@mail.gmail.com>
Date: Mon, 28 Jan 2008 09:22:03 -0500
From: "Brian Mathis" <brian DOT mathis AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Equivalent of recycle bin?
In-Reply-To: <183c528b0801280620v5cb928c8t1bd029d679a5c626@mail.gmail.com>
MIME-Version: 1.0
References: <fnk6s2$9lm$1 AT ger DOT gmane DOT org> <183c528b0801280620v5cb928c8t1bd029d679a5c626 AT mail DOT gmail DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mon, Jan 28, 2008 at 9:20 AM, Brian Mathis <brian DOT mathis AT gmail DOT com> wrote:
> On Mon, Jan 28, 2008 at 4:22 AM, Eric Lilja <mindcooler AT gmail DOT com> wrote:
>  > Hello, I messed up royally today when I was merging two bash scripts.
>  >  When I was going to test if my argument handling worked I had forgot to
>  >  comment out a call to "rm -f" that took a relative path and since the
>  >  script wasn't executed where it was supposed to it removed several
>  >  files. Many of those are easily replaced but some were source files that
>  >  have been modified the past months and the last backup was from july
>  >  23rd 2007. =/
>  >
>  >  I know I should robustify my script but I was wondering if there's an
>  >  equivalent of the recycle bin I can use so I can easily restore files
>  >  that were not supposed to be deleted?
>  >
>  >  - Eric
>
>  No, there is no "recycle bin" in Linux.  Sorry.  The best you can do
>  is do a google for "undelete linux" and see if any of that helps you.
>  You *may* be able to recover the files if you take a bit-for-bit image
>  of the disk, then manually look through that X GB file for the disk
>  clusters that contain some strings that you remember are in those
>  scripts.  Chances are that if you didn't shut down the server
>  immediately after, the files are gone.
>
>  Of course you know that you should always have backups, but most
>  people need a catastrophe to really understand *how* important they
>  are.  Consider this your catastrophe.

OK, so I'm on the cygwin mailing list and a linux mailing list.  Guess
which I thought I was reading? :)

If you are on Windows Server or Vista, Volume Shadow Copy might help
you get those back.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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