Maintain control of your Microsoft 365 data
Post Reply
DanielJ
Service Provider
Posts: 243
Liked: 44 times
Joined: Jun 10, 2019 12:19 pm
Full Name: Daniel Johansson
Contact:

List backed up accounts

Post by DanielJ »

We do something like this to get a list of backed up accounts:

Code: Select all

$org = Get-VBOOrganization -name 'TheOrganization'
$users = Get-VBOOrganizationUser -Organization $org
foreach ($user in $users) {
  if ($user.IsBackedUp) {
    ... etc ..
  }
}
Now we just started backing up our first organization where the customer don't want their Exchange backed up, only OneDrive and Sites. And when doing this it seems that IsBackedUp is not set. All accounts have IsBackedUp = false.

Am I right in assuming that IsBackedUp is only set when Exchange data is backed up?

What other way is there to get a list of backed up users? I find nothing in Get-VBOJob or Get-VBOBackupItem.
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: List backed up accounts

Post by nielsengelen »

You can do this via the following:

Code: Select all

$repository = Get-VBORepository -Name 'REPO'
Get-VBOEntityData -Type User -Repository $repository -Name 'ACCOUNTNAME'
This will output 4 fields:
- IsMailboxBackedUp
- IsArchiveBackedUp
- IsOneDriveBackedUp
- IsPersonalSiteBackedUp
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
DanielJ
Service Provider
Posts: 243
Liked: 44 times
Joined: Jun 10, 2019 12:19 pm
Full Name: Daniel Johansson
Contact:

Re: List backed up accounts

Post by DanielJ »

Thanks you, that looks promising. I get a timeout however:

PS C:\Scripts> $users = Get-VBOEntityData -type user -Repository $repo
Get-VBOEntityData : This request operation sent to net.tcp://127.0.0.1:9191/Repository did not receive a reply within t
he configured timeout (00:01:00). The time allotted to this operation may have been a portion of a longer timeout. Th
is may be because the service is still processing the operation or because the service was unable to send a reply messa
ge. Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the
OperationTimeout property) and ensure that the service is able to connect to the client.
At line:1 char:10
+ $users = Get-VBOEntityData -type user -Repository $repo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-VBOEntityData], TimeoutException
+ FullyQualifiedErrorId : System.TimeoutException,Veeam.Archiver.PowerShell.Cmdlets.DataManagement.GetVBOEntityData

I get the same even when the server is more or less idle. Can this one minute timeout be increased somewhere?
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: List backed up accounts

Post by nielsengelen »

Is this on the VBO server? How many users do you have backed up?
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
DanielJ
Service Provider
Posts: 243
Liked: 44 times
Joined: Jun 10, 2019 12:19 pm
Full Name: Daniel Johansson
Contact:

Re: List backed up accounts

Post by DanielJ »

Yes, on the VBO server. I'm trying to find out how many users... I tried on another VBO server, there Get-VBOEntityData returned about 400 users in a few seconds.
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: List backed up accounts

Post by nielsengelen »

It's a bit weird this issue occurs, it means the service is overloaded and times out. Would be good to know how many users and maybe some info on the sizing of the VBO controller (CPU/mem) and load.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
DanielJ
Service Provider
Posts: 243
Liked: 44 times
Joined: Jun 10, 2019 12:19 pm
Full Name: Daniel Johansson
Contact:

Re: List backed up accounts

Post by DanielJ »

That's another problem I have with this particular server/organization. We run one VBO vm per organization with data saved on a shared repository (with dedicated shares). When running a job, CPU utilization stays on reasonably low levels for an hour or so, while download speeds are good, then follows one or more hours of CPU parked at 99-100% while nothing seems to be happening (read rate = 0 or in the low kb's). Then follows another period of CPU varying between 5-50% and good read/write rates again. Memory stays around 80% the whole time. I have increased to 8 vCPU/16 GB, I can try increase them further but support didn't think it would help. We have 4 vCPU/8 GB on our other VBO servers with no issue, but those organizations are definitely smaller. The current ticket number for this is 03617109.

In any case, I tried Get-VBOEntityData while the CPU wasn't maxed out, but a job was running at the same time. Maybe it will not work then (even though various other PS queries work). I will try when the job has finished, but that usually takes days.
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests