Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am currently having a bit trouble with calculating backup sizes with Jungledisk due to the fact that each hard links seems to be counted as a seperate file. I want to be able to retrieve a list of all hard links in a certain folder structure, in this case everything in /var/ and deeper.

What's the best way to approach this?

share|improve this question
    
If your backup software doesn't understand hardlinked files, it isn't really doing a backup of your computer -- when you restore from one of these backups your filesystem will be a total mess and nothing like what you backed up. –  chris Nov 15 '09 at 8:24
    
Jungledisk handles hard links pretty well, actually. They are just counted as seperate bytes during creating of the backup. WHen the backup is uploaded to the cloud, the bytes are joined, however, so it does not actually cause a storage problem. –  Aron Rotteveel Nov 15 '09 at 16:32

1 Answer 1

up vote 4 down vote accepted

Not sure exactly what your question is,

If you want to find out how much space is in /var, and it's not a separate partition, then

du -hs /var

would seem to be your best bet.

If you just want a list of files with more than link, then

find /var -type f -nlink +1 -print

would do it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.