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

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <183c528b0801280620v5cb928c8t1bd029d679a5c626@mail.gmail.com>
Date: Mon, 28 Jan 2008 09:20:37 -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: <fnk6s2$9lm$1@ger.gmane.org>
MIME-Version: 1.0
References: <fnk6s2$9lm$1 AT ger DOT gmane DOT org>
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 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.

--
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