Is there a way to create a roport using powershell that includes the backup size. I've tried pulling information but all I see is application size, size on disk etc.
I need to do this for physical and virtual machines.
Is there a way to create a roport using powershell that includes the backup size. I've tried pulling information but all I see is application size, size on disk etc.
I need to do this for physical and virtual machines.
Best answer by Cbcurry1
Hello, I just wanted to report back on this topic. I have successfully pulled the backup size of vms backed up with a VSA. The size does match the size reported when you view the job in the Commvault Console on the virtual machine tab. In order to do it, I used [math]::Round(($_.UsedSpace/1GB),2).
What had to be done was to run a cvgetjobs to get the jobs for the VSA client and subclients. Then run get-cvjobdetail for the job. The property UsedSpace is the Backup Size. when you review the backup in the gui for the subclient under the VSA backup, choose backup history, choose a backup job, and then virtual machines tab, there will be a backup size. then the date and baackup size had to be converted. The backup times are in Unix date format. Once converted, the dates and UsedSpace are exactly what is displayed in the gui.
I appreciate all the previous feedback and assistance with this topic. its’ nice to know there is help out there.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.