PowerShell script exchange
Post Reply
anton
Novice
Posts: 7
Liked: 1 time
Joined: Oct 04, 2011 7:22 am
Full Name: Anton van der Linden
Contact:

Powershell progress information when still calculating

Post by anton »

Hi all,

We are running some NAS backups on large file shares (>10TB) with over >50M of files.
When we start the job this job will not show progress, but shows "calculating" (which makes sense).

For reporting purposes we gather progress on all jobs twice a day using the following Powershell commandlets:
$job = Get-VBRJob -name "File backup xxxx"
$job.FindLastSession().progress.percents

When the job is still in calculating state; this will return 99%

Is there any way to detected (using Powershell) that the job is still calculating?
Only workaround I found is looping of the progress object and checking if the TotalSize object is still incrementing.
oleg.feoktistov
Veeam Software
Posts: 1912
Liked: 635 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Powershell progress information when still calculating

Post by oleg.feoktistov »

Hi Anton,

I'm afraid, there isn't. While job is in calculating stage, powershell returns session status as "In Progress", which makes it quite complex
to explicitly know that calculations are still being done. And there isn't any "Calculating" status declared on the PS backend, which would make it easier.

Thanks,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests