Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.