Hello everyone!
Is anyone knows how to quickly find vcd entities and add them into backup job? Find-vbrvcloudentity is works extremly slow (In my infrastructure i have 40k+ objects). Is there any way to get data from veeambackup database?
The case is:
Create backup jobs from powershell with interaction:
1. Choose type of object vm\org vdc\ vcd org
2. Enter name of object
3. Add object to backup job
4. Steps 1-3 until success
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Oct 21, 2021 8:57 am
- Full Name: Andrey Blagov
- Contact:
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Add objects in Job
Hi Andrey,
That's the only supported way to query vCD infrastructure objects to add them to a backup job.
Another way would still require going with Find-VBRvCloudEntity afterwards as vCD backup jobs accepts only objects of types produced with Find-VBRvCloudEntity cmdlet.
Can I ask you please to do a simple test with a .NET stopwatch to determine how the precise time it requires in your infrastructure to query
objects of certain types (vApp, VM, OrgVdc, VcdOrg etc.) ?
The test is as simple as that:
Thanks,
Oleg
That's the only supported way to query vCD infrastructure objects to add them to a backup job.
Another way would still require going with Find-VBRvCloudEntity afterwards as vCD backup jobs accepts only objects of types produced with Find-VBRvCloudEntity cmdlet.
Can I ask you please to do a simple test with a .NET stopwatch to determine how the precise time it requires in your infrastructure to query
objects of certain types (vApp, VM, OrgVdc, VcdOrg etc.) ?
The test is as simple as that:
Code: Select all
$stopwatch = [System.Diagnostics.Stopwatch]::StartNew()
$server = Get-VBRServer -Name 'vCloudDirector Name'
Find-VBRvCloudEntity -Server $server -VApp # please test with other entity types also
$stopwatch.Elapsed
$stopwatch.Stop()
Oleg
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Oct 21, 2021 8:57 am
- Full Name: Andrey Blagov
- Contact:
Re: Add objects in Job
Hi, Oleg.
Just before yor question I've decided to measure it on my own with the 'measure-command'.
Measure-Command -Expression {Find-VBRvCloudEntity -full}
The results are
Days : 0
Hours : 1
Minutes : 7
Seconds : 47
Milliseconds : 970
Ticks : 40679706527
TotalDays : 0.0470829936655093
TotalHours : 1.12999184797222
TotalMinutes : 67.7995108783333
TotalSeconds : 4067.9706527
TotalMilliseconds : 4067970.6527
Just before yor question I've decided to measure it on my own with the 'measure-command'.
Measure-Command -Expression {Find-VBRvCloudEntity -full}
The results are
Days : 0
Hours : 1
Minutes : 7
Seconds : 47
Milliseconds : 970
Ticks : 40679706527
TotalDays : 0.0470829936655093
TotalHours : 1.12999184797222
TotalMinutes : 67.7995108783333
TotalSeconds : 4067.9706527
TotalMilliseconds : 4067970.6527
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Add objects in Job
And what about tests with other entity types? vApp, VM, OrgVdc, VcdOrg.
Also, please, let me know the VBR version + build number. Thanks!
Also, please, let me know the VBR version + build number. Thanks!
Who is online
Users browsing this forum: No registered users and 9 guests