SpanningCloudApps / SB365-Powershell

Spanning Backup for Office 365 REST API PowerShell Module
https://spanning.com
Apache License 2.0
11 stars 5 forks source link

Easy way to check which user backup failed or was partial #51

Closed baspe closed 2 years ago

baspe commented 2 years ago

Hi,

I was just wondering i you already have an easy way to check which user failed of was partial in a tenant backup. Of course i could us the userlist and get the status of the backup of all users, loop through those an figure out were we went wrong, But that feels like al lot of overhead. i would hope there would be something in the api that wuld already filter de userlist based on failed or partial backups.

What i am trying to do is use the spanning powershell modul to check the backup end automate the creation of a ticket in our ticketing system based on wheter or not the backup failed multiple times in a row.

Regards,

Bart Spel Avantage bart@avantage.nl

SPMatthewMcD commented 2 years ago

Bart,

There is no easy way today. I'll feed this info back to the team.

As you said, today, you would pull the users with the Status flag (and maybe use the StartDate of (Get-Date).AddDays(-3) to get the past 3 days). Then loop through the results looking for serial failures on a user.

Matt

baspe commented 2 years ago

Hi Matthew,

Thanks for the quick reply.

I would like to share my script with you to see if I did it right and don’t hit the spanning API too much. We currently have 4500 licenses in spanning (with multiple customers) and growing.

I would like to be as efficient as possible. Is that oke ?

Groet Bart

SPMatthewMcD commented 2 years ago

Bart,

I'd be happy to take a look.

matt.mcdermott@spanning.com (but you probably knew that. ;) )

M

SPMatthewMcD commented 2 years ago

Closing as we worked up a script.