PowerShell script exchange
Post Reply
johnny1337
Service Provider
Posts: 6
Liked: never
Joined: Aug 28, 2020 12:53 pm
Full Name: Jonas
Contact:

Veeam cloud connect

Post by johnny1337 »

Hi,

Is it possible to get date for latest restore point per computer?

I modified the script here: powershell-f26/cloud-connect-report-fro ... 44872.html with the result below:

Code: Select all

$subtenant = Get-VBRCloudSubTenant
$job = @()

foreach ($ct in $subtenant)
        {           
        foreach ($r in $ct.Resources){ 
                    $JobName = $ct.Name
                    $UsedSpace = $r.UsedSpace
                    $UsedSpacepercent = [string]$r.UsedSpacePercentage + " %"
                    $FreeSpace = ($r.RepositoryQuota - $r.UsedSpace) 
                    $UsedSpaceGB = [math]::Round(($UsedSpace / 1024), 2)
                    $FreeSpaceGB = [math]::Round(($FreeSpace / 1024), 2)
                    $RepositoryFriendlyName = $r.RepositoryFriendlyName
                    $Enabled = $ct.Enabled
                }
                $job += [pscustomobject]@{Jobname = $JobName; UsedSpaceInGB = $UsedSpaceGB; UsedSpacePercent = $UsedSpacepercent; FreeSpaceInGB = $FreeSpaceGB; RepositoryFriendlyName = $RepositoryFriendlyName; Enabled =$Enabled}
                }
                  
                $job | sort Jobname | Format-Table -AutoSize
                
But I would really like last restore point date.
Vitaliy S.
VP, Product Management
Posts: 27121
Liked: 2722 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Veeam cloud connect

Post by Vitaliy S. » 1 person likes this post

Hi Jonas,

It is not exactly what you're asking for, but if you run Veeam Service Provider Console you can get this info via APIs or by simply exporting the Protected Data tab into CSV/XML.

Thanks!
johnny1337
Service Provider
Posts: 6
Liked: never
Joined: Aug 28, 2020 12:53 pm
Full Name: Jonas
Contact:

Re: Veeam cloud connect

Post by johnny1337 »

Hi Vitaliy,

That was great info. Is it possible to automatically send it as an email or download it via script?
Some computers seems like they are missing.
The only thing missing in that view is the space-values I think.

Thank you!
Vitaliy S.
VP, Product Management
Posts: 27121
Liked: 2722 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Veeam cloud connect

Post by Vitaliy S. »

Do you manage these backup agents or they are managed by customers themselves and you're only providing Cloud Connect repository as a service?
johnny1337
Service Provider
Posts: 6
Liked: never
Joined: Aug 28, 2020 12:53 pm
Full Name: Jonas
Contact:

Re: Veeam cloud connect

Post by johnny1337 »

I am managing the backup agents. Maybe I should look at the api.
Vitaliy S.
VP, Product Management
Posts: 27121
Liked: 2722 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Veeam cloud connect

Post by Vitaliy S. »

If you're managing those, then you can use our predefined backup report > Protected Computers Backup Report (this report cab be shared too).

As for the APIs, then please take a look at this section for more info, should help > Schemas - ProtectedComputerManagedByConsole

Let me know if that helps!
Post Reply

Who is online

Users browsing this forum: theadamlion and 15 guests