From owner-freebsd-questions@FreeBSD.ORG Mon Jun 11 20:53:50 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7888B16A469 for ; Mon, 11 Jun 2007 20:53:50 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by mx1.freebsd.org (Postfix) with ESMTP id 1037013C457 for ; Mon, 11 Jun 2007 20:53:49 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id l5BKrlVx042619; Mon, 11 Jun 2007 22:53:47 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 12B21B903; Mon, 11 Jun 2007 22:53:47 +0200 (CEST) Date: Mon, 11 Jun 2007 22:53:47 +0200 From: Roland Smith To: Kyrre =?iso-8859-15?Q?Nyg=E5rd?= Message-ID: <20070611205347.GA25656@slackbox.xs4all.nl> References: <466DAF67.6080804@broadpark.no> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline In-Reply-To: <466DAF67.6080804@broadpark.no> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.15 (2007-04-06) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: questions@freebsd.org Subject: Re: Is there a way to undelete? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2007 20:53:50 -0000 --azLHFNyN32YCQGCU Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 11, 2007 at 10:24:07PM +0200, Kyrre Nyg=E5rd wrote: > Hello! >=20 > I'm just curious if there's a way to undo a rm -rf. > There has to be something eqivalent in FreeBSD to all those recovery too= ls? Unless you've written new data to the disk, the old data is still there. So yes it is possible to recover files. Google for "UFS recovery". But unless you've made a backup (which you should) it won't be easy. There is restore(8), in case you've made backups with dump(8).=20 You could also set up a cron job to make nightly snapshots, and mount them somewhere so you can access the filesystem as it existed at the time the snapshot was taken. This way you don't have to mess around with backup media. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --azLHFNyN32YCQGCU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGbbZbEnfvsMMhpyURAtTNAJ9girAsuFPLOUGj6Fdjn4h4ewkT/wCgsEIz OzU3Wqn6h/KNygGZwxO1Ok8= =Kgqf -----END PGP SIGNATURE----- --azLHFNyN32YCQGCU--