| Date: Fri, 19 Jul 2002 22:00:02 +0100
| From: "Matthew French" <mfrench42 at 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.
Innovative, very experienced, Unix and | Brian Foster Dublin, Ireland
Chorus (embedded RTOS) kernel internals | e-mail: blf at 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...
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!