2005/8/30, Graeme Humphries <graeme.humphries AT vcom DOT com>:
> Guy Dallaire wrote:
>
> >Yes, thanks. I know about hard links. But how would it impact the size
> >or performance of my backups ?
> >
> Well, if a file is hard linked multiple times, it'll be backed up
> multiple times. Therefor, a filesystem with tons of hard links will take
> a really long time to back up. :)
>
> >And is there a way to find the number of HARD links ?
> >
> >
> Find should do this... let's see... Yep, according to "man find", %n in
> its internal printf will give you the number of hard links to a file.
> So, something like this should give you useful output about what files
> have multiple hard links:
>
> find . -printf "%n %p\n" | sort -r
>
Unfortunately, looks like sun's find command does not have the printf
option built in. What is strange tough is that if I do a "find /disk1
-links +1" I find a LOT of files. According to find's man page, the
links +1 parameter predicate is true if file has n links....
|