How to create vcloud based job using organization

PowerShell script exchange

How to create vcloud based job using organization

Veeam Logoby vmm » Tue Dec 01, 2015 12:23 pm

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
vmm
Service Provider
 
Posts: 15
Liked: never
Joined: Mon Nov 23, 2015 10:09 am
Full Name: Marat Akhmetianov

Re: How to create vcloud based job using organization

Veeam Logoby v.Eremin » Tue Dec 01, 2015 12:28 pm

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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: How to create vcloud based job using organization

Veeam Logoby vmm » Tue Dec 01, 2015 12:41 pm

Yes. OrgVDC for VDC works. But what if we want to add Organization?
vmm
Service Provider
 
Posts: 15
Liked: never
Joined: Mon Nov 23, 2015 10:09 am
Full Name: Marat Akhmetianov

Re: How to create vcloud based job using organization

Veeam Logoby v.Eremin » Tue 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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: How to create vcloud based job using organization

Veeam Logoby vmm » Tue Dec 01, 2015 1:15 pm

Thanks. We'll try that one.
vmm
Service Provider
 
Posts: 15
Liked: never
Joined: Mon Nov 23, 2015 10:09 am
Full Name: Marat Akhmetianov


Return to PowerShell



Who is online

Users browsing this forum: Bing [Bot] and 4 guests