1753774 Members
7477 Online
108799 Solutions
New Discussion

Re: looking for links

 
Jim Lynn
Contributor

looking for links

We have systems running HPUX 10.20 in places where the clients refuse to move tapes and when they crash we have to borrow tapes from other sites to recover. We think some of the links are not getting restored and hence some of the site unique connections/user ID's are not being recovered. Does anyone know how to check for links? I would compare a working site to a failed location to see if all the links are being transfered via tape. It looks like the find command would work but I need to to look for wild cards instead of specific files.
I'm really new
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: looking for links

For hard links, you simply need to specify -links +1,
For example
find . -type f -links +1
would find all the regular files with more than 1 link. Every file will have at least 1 link. Directories will have at least 2.

You also need to find symbolic links:
find . -type l
will yield those.

However, none of this makes up for lack of good, reliable backups. That is where you really need to be devoting your efforts.

If it ain't broke, I can fix that.