PowerShell script exchange
Post Reply
stsc_srzc
Influencer
Posts: 23
Liked: 2 times
Joined: Feb 21, 2013 11:53 am
Contact:

StoredSize Attribute Empty in Veeam 7

Post by stsc_srzc »

Hi Everyone!

We have a script that queries data regarding completed backup sessions. A simplyfied example of the script follows. Starting with Veeam 7 we noticed that the "StoredSized" attribute for each session is always empty. On Veeam 6 it was filled with a number. Does someone has a hint for us on this issue? Can this value be found in another attribute now or is it deprecated? How can we get the size that was written to a data pool?

Code: Select all

Add-PSSnapin -Name VeeamPSSnapIn

$sessions = Get-VBRBackupSession
foreach ($session in $sessions) {
    $TaskSessions = $session.GetTaskSessions()
    foreach($TaskSession in $TaskSessions) {
        $TaskInfo = $TaskSession.Info
        $Progress = $TaskInfo.Progress
        write-host "TotalSize" $Progress.TotalSize
        write-host "ProcessedSize" $Progress.ProcessedSize
        write-host "StoredSize" $Progress.StoredSize
        write-host "ReadSize" $Progress.ReadSize
    }
}
Best regarads
Stefan
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: StoredSize Attribute Empty in Veeam 7

Post by veremin »

It seems that .StoredSize attribute isn't present any longer. You can try to use .TotalUsedSize, instead, and see whether it gives you what you're after. Thanks.
stsc_srzc
Influencer
Posts: 23
Liked: 2 times
Joined: Feb 21, 2013 11:53 am
Contact:

Re: StoredSize Attribute Empty in Veeam 7

Post by stsc_srzc »

Hi Vladimir,

thanks for your post. You are right ".StoredSize" is no longer available in Veeam 7. I tried ".TotalUsedSize" instead but it always returns "0". I don't know what this value is for. Finally I ended up with ".TransferedSize" which seems to be new in Veeam 7 as it is not available in Veeam 6.

My tests with ".TransferedSize" showed that it contains values similar to ".StoredSize". As long as no one comes up with a "Do not use this because ..." I'll stick with it :D

Best Regrads
Stefan
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: StoredSize Attribute Empty in Veeam 7

Post by veremin »

Yep, I was going to propose .TransferedSize parameter if .TotalUsedSize didn't meet your expectations.

Anyway, as long as, the chosen parameter suites your needs, you can use it without any issues.

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests