get disk usage of files modified in last 24 hours
We are mounting a CIFS share for our VMWare infrastructure backups. Anyway, we are using a enterprise backup solution for our physical boxes, which is also backing up the contents of this mount point for offsite keeping on tape.
What I would like to do is for our incrementals, calculate the files that have been modified in the last day within that mount point and get the total size.
I have attempted this by crafting the following command within /mnt/ourCIFSmount:
find ./-mtime -1 -ls | du -ch | grep total
but this looks like it is giving 2x the amount of data sizes. If I take the | grep total off, I see the listing which everything is duplicated (24gb for directory1 and 24gb for everything beneath that directory for a total of 48gb). Anyone have a neat little trick to obtain the information I am trying to calculate?
Thanks in advance!