I've been asked to locate files created 80 days ago and calculate the space they occupy, for a few different filesystems, which is normally easy to do with the "find" command, such as:
# find . -mtime +80 -exec du -ks {} \; | cut -f1 | awk '{total=total+$1}END{print total/1024}'
But, in this case where we have several "filesystems" that share space on ZFS, this isn't working as well, as each run against the /mount/point reports the same result.
What I'm wondering is if there is a more specific way at the command-line level, perhaps on the ZFS NAS itself in shell mode, that I can determine the above information; that is, how many files were created since 80 days ago and the space each occupies in the filesystem, reported per /mount/point.
Thanks
# find . -mtime +80 -exec du -ks {} \; | cut -f1 | awk '{total=total+$1}END{print total/1024}'
But, in this case where we have several "filesystems" that share space on ZFS, this isn't working as well, as each run against the /mount/point reports the same result.
What I'm wondering is if there is a more specific way at the command-line level, perhaps on the ZFS NAS itself in shell mode, that I can determine the above information; that is, how many files were created since 80 days ago and the space each occupies in the filesystem, reported per /mount/point.
Thanks