I have a log of files that's on a NFS, and they are connected via softlinks on the local redhat server.
When I try to run search for any files that was touched during last weekend and calculate their total sizes, I found that the results are wrong.
find . -mtime +3 -a -mtime -5 -ls
This gives me the names,paths,size,gid,uid,etc of the files that was touched within last weekend. That is great.
The problem comes with the softlinks. it is only reporting the links sizes itself, not the file that it is linking towards. So the link might only be 102 bytes while the actual file is 24G. Also it appears to be double counting somewhere because it is telling me that I have 23TB of files when the total storage size is 11TB.
Is there a way to get around this?