Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2004 23:09:16 +0800
From:      Xin LI <delphij@frontfree.net>
To:        Daniel Lang <dl@leo.org>
Cc:        current@freebsd.org
Subject:   Re: A way to recover deleted files (just contents) from USF2
Message-ID:  <20040420150916.GA1535@frontfree.net>
In-Reply-To: <20040420130803.GC62962@atrbg11.informatik.tu-muenchen.de>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <delphij frontfree net>	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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040420150916.GA1535>