For the easy one, instead of
Code: Select all
$session = Get-VBRBackupSession | select -first 1
try this
Code: Select all
$session = (Get-VBRBackupSession)[0]
Does work more quickly, but yeah it's a bug somewhere in the piping of the "GET-VBR*" command, I can confirm it fails also for Get-VBRJob
if you do it like on the web help : "Get-VBRBackupSession | Sort EndTimeUTC -Descending | Select -First 1" it does work, probably because the object type is handled in a better way when the full list is loaded, as induced by the sort... well, ()[0] is fine but not error proof.
then I can confirm your issue : here is before using gettasksessions()
Code: Select all
TotalObjects : 1
ProcessedObjects : 1
ProcessedSize : 279172874240
ProcessedUsedSize : 115393691647
ReadSize : 3133145088
ReadedAverageSize : 3133145088
TransferedSize : 3064949396
ProcessedDelta : 0
ProcessedUsedDelta : 0
ReadDelta : 0
ReadedAverageDelta : 0
TransferedDelta : 0
StartTimeLocal : 7/24/2019 11:30:20 PM
StopTimeLocal : 7/25/2019 4:53:34 AM
StartTimeUtc : 7/24/2019 9:30:20 PM
StopTimeUtc : 7/25/2019 2:53:34 AM
Percents : 100
AvgSpeed : 23335044
BottleneckInfo : Veeam.Backup.Model.CBottleneckInfo
TotalSize : 279172874240
TotalUsedSize : 115393691647
UsedSpaceRation : 0.413341346150264
TotalSizeDelta : 0
TotalUsedSizeDelta : 0
Duration : 05:23:14.2300000
Updates : Veeam.Backup.Model.CBackupProgressUpdates
IsNeedSubstractReadDelay : False
after (I kept only the modified values)
Code: Select all
ProcessedSize : 558345748480
ProcessedUsedSize : 230787383294
TransferedSize : 6129898792
ProcessedDelta : 279172874240
ProcessedUsedDelta : 115393691647
TransferedDelta : 3064949396
Percents : 100
AvgSpeed : 238722
UsedSpaceRation : 0.413341346150264
TotalSizeDelta : 279172874240
TotalUsedSizeDelta : 115393691647
then I used the "correct way" to get task session on another session
(this output exactly what $session.gettasksession() does, same content, same objecttype)
and the session.info is not modified.
there are bugs for sure, but using objects piping is cleaner I think