LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] hard- vs. soft-links [was: How to copy some files ]

[ILUG] hard- vs. soft-links [was: How to copy some files ]

Matthew French mfrench42 at yahoo.co.uk
Fri Jul 19 22:03:57 IST 2002


Brian Foster wrote:
>  I use this fact on occasion to "save" data, via the well-
>  known attack of hard-linking to a supposedly-temporary file
>  I want to preserve.  the subsequent unlink(2)ing of the
>  "temporary" file does not destroy the data.

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"

Another script can then periodically clear out enough old files to ensure
that there is usually enough disk space.

Although this sounds like a horrible hack. It would no doubt be much better
to have a transaction oriented file system with a rollback facility.  :)

- Matthew


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.comm





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell