From: Brian Foster (blf at domain utvinternet.ie)
Date: Sat 20 Jul 2002 - 07:11:19 IST
| Date: Fri, 19 Jul 2002 22:00:02 +0100
| From: "Matthew French" <mfrench42 at domain yahoo.co.uk>
|[ ... ]
| Now here is a thought: a Unix version of the "Deleted Items" folder.
|
| In the root of a hard drive, create a directory ".unwanted".
| Then periodically create hard links to every file on the hard
| drive that does not have hard links.
|
| That way, when someone accidentally does "rm *" or whatever,
| you still have a link under ".unwanted" [ ... ]
hum. interesting variation on the classic technique of
redefining `rm' to `mv' the files into `./.trash/' (or
with a prefix of `#' or a suffix of `~'; the variations
are endless). these classic techniques only provide a
means to roll back accidental `rm's, so there is still
considerable scope for data lost as there are other ways
of deleting files --- which is not a problem for this
hard link idea.
but, like the classic techniques, there is no rolling
back of accidental overwrites.
( rolling back overwrites reminds me of the "snapshot"
facility on NetWork Appliance fileservers. and of the
various "versioning" filesystems which appeared --- and
then vanished? --- over the years.... )
one severe(?) gotcha is some files shouldn't have any
hard links. both RCS *,v (and hence CVS) and SCCS s.*
files are like this --- the RCS(/CVS?)/SCCS toolsets
complain if there are hard links.
cheers,
-blf-
--
Innovative, very experienced, Unix and | Brian Foster Dublin, Ireland
Chorus (embedded RTOS) kernel internals | e-mail: blf at domain utvinternet.ie
expert looking for a new position ... | mobile: (+353 or 0)86 854 9268
For a résumé, contact me, or see my website http://www.blf.utvinternet.ie
Stop E$$o (ExxonMobile): «Whatever you do, don't buy Esso --- they
don't give a damn about global warming.» http://www.stopesso.com
Supported by Greenpeace, Friends of the Earth, and numerous others...
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:59 GMT