I'm trying to understand how Measure-DedupFileMetadata
works so I can recursively go through some folders to report on how much space is actually used. I don't know how to interpret the output.
If I understand the documentation correctly, DedupDistinctSize should tell me how much space is freed if I delete those files (after garbage collection). These numbers appear accurate for most of my folders. But on folders where no deduplication has taken place yet, it shows 0.
I'm also not sure how to understand the SizeOnDisk info.
Here is the output for two folders:
Path : {E:\veeam\folder1}
Volume : E:
VolumeId : \\?\Volume{77da8d6d-1416-4d2a-8c85-75c91f980398}
FilesCount : 19
OptimizedFilesCount : 3
Size : 2.38 TB
SizeOnDisk : 1.81 TB
DedupSize : 491.38 GB
DedupChunkCount : 6786488
DedupDistinctSize : 475.59 GB
DedupDistinctChunkCount : 6561011
Path : {E:\veeam\folder2}
Volume : E:
VolumeId : \\?\Volume{77da8d6d-1416-4d2a-8c85-75c91f980398}
FilesCount : 18
OptimizedFilesCount : 0
Size : 332.7 GB
SizeOnDisk : 332.7 GB
DedupSize : 0 B
DedupChunkCount : 0
DedupDistinctSize : 0 B
DedupDistinctChunkCount : 0