PowerShell script exchange
Post Reply
bcram
Service Provider
Posts: 4
Liked: never
Joined: Aug 18, 2021 9:33 am
Full Name: Marc
Contact:

How to add tag combinations to a backup job

Post by bcram »

Hi folks,

Apologies if this has already been discussed, but I couldn't find it in the forum.

We use tag combinations for our backup jobs. I'd like to set this with Powershell, but I don't see how to do it. Adding an array of tags simply adds them as individual tags:

Code: Select all

$job = Get-VBRJob -Name testjob
$tags = Find-VBRViEntity -Tags | ? { $_.Name -eq "dummy1" -or $_.Name -eq "dummy2" }

Add-VBRViJobObject -Job $job -Entities $tags

Get-VBRJobObject -Job $job

Name                   Type       ApproxSize       Location
----                   ----       ----------       --------
dummy1                 Include    0 B              xxx
dummy2                 Include    0 B              xxx
Is there a way to add tag combinations with Powershell?

Cheers,
Marc
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: How to add tag combinations to a backup job

Post by oleg.feoktistov »

Hi Marc,

This feature is not yet available through Powershell, but we are planning to add it in vNext.

Thanks,
Oleg
bcram
Service Provider
Posts: 4
Liked: never
Joined: Aug 18, 2021 9:33 am
Full Name: Marc
Contact:

Re: How to add tag combinations to a backup job

Post by bcram »

OK, thanks Oleg!
JMeixner
Veeam Legend
Posts: 6
Liked: 1 time
Joined: Apr 20, 2021 3:16 pm
Full Name: Jochen (Joe) Meixner
Contact:

Re: How to add tag combinations to a backup job

Post by JMeixner »

Hi Oleg,
what means vNext? v11a or v12?

Best,
Joe
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: How to add tag combinations to a backup job

Post by oleg.feoktistov »

I meant 11a. Thanks!
LevB
Service Provider
Posts: 4
Liked: never
Joined: Dec 06, 2021 5:18 pm
Full Name: Lev B.
Contact:

Re: How to add tag combinations to a backup job

Post by LevB »

Hi Oleg,
is the tag combination feature available now in powershell?
BR
Lev
LevB
Service Provider
Posts: 4
Liked: never
Joined: Dec 06, 2021 5:18 pm
Full Name: Lev B.
Contact:

Re: How to add tag combinations to a backup job

Post by LevB »

Is it the "Multitag" parameter that came in 11.0.1.1261 P20211123?

Thanks, Lev
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: How to add tag combinations to a backup job

Post by oleg.feoktistov »

Yes, correct. For anyone seeing this thread - we are talking about -Multitag parameter in Add-VBRViJoObject cmdlet. Thanks!
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 13 guests