X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: Subject: RE: Equivalent of recycle bin? Date: Mon, 28 Jan 2008 14:32:25 -0000 Message-ID: <001801c861ba$99cb7bc0$2e08a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com WARNING: This email contains SERIOUSLY dangerous advice. Don't try this at home kids, DaveK is a highly-trained^H^H^H^H^H^H^H^H reckless nutter. On 28 January 2008 09:22, Eric Lilja 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. =/ #include ;-) > 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? Yep, sysinternals do a thing that patches into the low-level disk drivers and provides a system-wide recycle bin facility entirely independent of the Explorer shell recycle bin, it should run just fine underneath cygwin. Hmm, I can't seem to find it right now.... "FUndelete". Nope, those microsoft scumbags have withdrawn it, presumably because it came with source code and they hate that, in fact they've entirely erased it from history, it is an un-software, there's not a mention of it anywhere on microsoft.com, not even a "we have withdrawn this" announcement. Gotta love that web archive :) http://web.archive.org/web/20060125011929/www.sysinternals.com/Utilities/Funde lete.html http://web.archive.org/web/20060125011929/http://www.sysinternals.com/Files/Fu ndelete.exe http://web.archive.org/web/20060125011929/http://www.sysinternals.com/Files/Fu ndeleteSource.zip For those who prefer their URLs unwrapped: http://tinyurl.com/22zot8 [ homepage ] http://tinyurl.com/yrcs87 [ exe ] http://tinyurl.com/yqgmc6 [ sources! ] Now, the catch: This software is unsupported these days and may or may not work well on anything more recent than win2k. XP, 2k3 and Vista all introduce changes to the IFS (installable filesystem) device model, and it's possible that this code won't play happily with any/and/or/all of them. It's impossible to underestimate how dangerous playing with unverified disk filter drivers is, although the words "AAAaRGHOMYGODWHEREDIDEVERYSINGLEFILEI'VEBEENWORKINGONFORTHEPASTTENYEARSSUDDEN LYDISAPPEARTO?" should give you some feel for the scale of the potential dangers. YMMV, I have no knowledge of the situation, it's possible that everything will be fine, but I cannot recommend trying this software on any machine that you are not *completely* happy with the idea of wiping and reinstalling from scratch on. TAKE LOTS OF BACKUPS! cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/