From owner-freebsd-current@FreeBSD.ORG Tue Apr 20 08:09:20 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1512116A4CE for ; Tue, 20 Apr 2004 08:09:20 -0700 (PDT) Received: from avgw.bjut.edu.cn (avgw.bjut.edu.cn [202.112.78.85]) by mx1.FreeBSD.org (Postfix) with SMTP id 50E4D43D54 for ; Tue, 20 Apr 2004 08:09:19 -0700 (PDT) (envelope-from delphij@frontfree.net) Received: from beastie.frontfree.net ([218.107.145.7]) by avgw.bjut.edu.cn (SAVSMTP 3.1.5.43) with SMTP id M2004042023091800768 for ; Tue, 20 Apr 2004 23:09:18 +0800 Received: from localhost (localhost [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id 21FA5118C3; Tue, 20 Apr 2004 23:09:17 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00989-03; Tue, 20 Apr 2004 23:09:16 +0800 (CST) Received: by beastie.frontfree.net (Postfix, from userid 1001) id AA7C0118B4; Tue, 20 Apr 2004 23:09:16 +0800 (CST) Date: Tue, 20 Apr 2004 23:09:16 +0800 From: Xin LI To: Daniel Lang Message-ID: <20040420150916.GA1535@frontfree.net> References: <4084F85B.5070909@delit.net> <20040420102632.GA36668@e-Gitt.NET> <20040420121423.GA1154@frontfree.net> <20040420125025.GA30066@energistic.com> <20040420130803.GC62962@atrbg11.informatik.tu-muenchen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline In-Reply-To: <20040420130803.GC62962@atrbg11.informatik.tu-muenchen.de> User-Agent: Mutt/1.4.2.1i X-GPG-key-ID/Fingerprint: 0xCAEEB8C0 / 43B8 B703 B8DD 0231 B333 DC28 39FB 93A0 CAEE B8C0 X-GPG-Public-Key: http://www.delphij.net/delphij.asc X-Operating-System: FreeBSD beastie.frontfree.net 5.2-CURRENT FreeBSD 5.2-CURRENT #22: Wed Apr 14 17:57:37 CST 2004 delphij@beastie.frontfree.net:/usr/obj/usr/src/sys/BEASTIE i386 X-URL: http://www.delphij.net X-By: delphij@beastie.frontfree.net X-Location: Beijing, China X-Virus-Scanned: by amavisd-new at frontfree.net cc: current@freebsd.org Subject: Re: A way to recover deleted files (just contents) from USF2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2004 15:09:20 -0000 --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 20, 2004 at 03:08:03PM +0200, Daniel Lang wrote: [...] > simple solution: >=20 > alias rm=3D"rm -i" [...] If memory serves me right, a distribution of Linux does this aliasing for root by default. Personally I prefer FreeBSD's approach beacuse, when doing this type of things, we are potentially breaking semantics of the original utility and hence may make errors on ther systems. A possible solution might be have a cron script that periodically takes snapshot of the file system (for example, one per one hour). While snapshot alone could be considered to be a complete backup solution, it is possible to save our time when recovering files from earlier snapshots, and it will be even possible to retrieve earlier versions of files. However, the overhead when taking the snapshots is not so neglectable (for a large file system, it will take several seconds for a snapshot to be taken). This approach is more similiar with Windows's recycle bin approach, but does not help in the download-and-rm case if there's no snapshot taken between download and rm. --=20 Xin LI http://www.delphij.net/ See complete headers for GPG key and other information. --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAhT0cOfuToMruuMARAnwZAJ9mMwjMf3ooAjTLW/loPhfTTNsEdgCfbUC7 XdiKLpG8r2TgId1V/qesOd4= =nsj8 -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q--