PowerShell script exchange
vmm
Service Provider
Posts: 15 Liked: never
Joined: Nov 23, 2015 10:09 am
Full Name: Marat Akhmetianov
Contact:
Post
by vmm » Dec 01, 2015 12:23 pm
this post
Hi!
How can we add to job based on vcloud with organization as the backup source?
Code: Select all
$vcloud = Find-VBRvCloudEntity -VApp -Name "vApp_CentOS7_V3"
$repository = Get-VBRBackupRepository -Name "Backup Repository 1"
Add-VBRvCloudJob -Name "cloud" -Entity $vcloud -BackupRepository $repository
This is for vApp
veremin
Product Manager
Posts: 20415 Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:
Post
by veremin » Dec 01, 2015 12:28 pm
this post
Have you tried something like this?
Code: Select all
$vDC = Find-VBRvCloudEntity -OrganizationVdc -Name "Name of your vDC"
$repository = Get-VBRBackupRepository -Name "Backup Repository 1"
Add-VBRvCloudJob -Name "cloud" -Entity $vDC -BackupRepository $repository
Thanks.
vmm
Service Provider
Posts: 15 Liked: never
Joined: Nov 23, 2015 10:09 am
Full Name: Marat Akhmetianov
Contact:
Post
by vmm » Dec 01, 2015 12:41 pm
this post
Yes. OrgVDC for VDC works. But what if we want to add Organization?
veremin
Product Manager
Posts: 20415 Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:
Post
by veremin » Dec 01, 2015 1:02 pm
1 person likes this post
Oh, I must have misread your original post.
What if you try to run Find-VBRvCloudEntity and use -Full parameter to view results as the list of all vCloud entities. If my memory serves me well, Organization Item should be returned among other entities.
Then, it can be selected as a source for vCloud backup job.
Thanks.
vmm
Service Provider
Posts: 15 Liked: never
Joined: Nov 23, 2015 10:09 am
Full Name: Marat Akhmetianov
Contact:
Post
by vmm » Dec 01, 2015 1:15 pm
this post
Thanks. We'll try that one.
Users browsing this forum: No registered users and 12 guests