amekkawi / diskusagereports

Disk Usage Reports is a web-based way to view disk usage on remote computers or servers, or to provide usage reports to users who store files on your server. Reports are stored as static JSON files which are retrieved via single HTML/AJAX web UI. No database or server-side scripting required.
http://diskusagereports.com
MIT License
67 stars 19 forks source link

hard-links #2

Open joshdaloewen opened 12 years ago

joshdaloewen commented 12 years ago

Can this be tweaked to only "count" hard-linked files once. I've got a server with a hard-linking system for backups, and diskusage is reporting that my 20gb drive has 50gb of space in use. Any ideas?

castilloj commented 11 years ago

If you are in a Linux/Unix environment you can use the find command with the -links options. For example:

find . -type d -o type f -links 1

lists the directories or files that have only one link. i.e. exclude files with more than 1 link.