X-Recipient: archive-cygwin@delorie.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.mathis@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Equivalent of recycle bin?
In-Reply-To: <183c528b0801280620v5cb928c8t1bd029d679a5c626@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <fnk6s2$9lm$1@ger.gmane.org> 	 <183c528b0801280620v5cb928c8t1bd029d679a5c626@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mon, Jan 28, 2008 at 9:20 AM, Brian Mathis <brian.mathis@gmail.com> wrote:
> On Mon, Jan 28, 2008 at 4:22 AM, Eric Lilja <mindcooler@gmail.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/

