PowerShell script exchange
Post Reply
LevB
Service Provider
Posts: 4
Liked: never
Joined: Dec 06, 2021 5:18 pm
Full Name: Lev B.
Contact:

How to enable the "Tape job priority" option for Tape Jobs via powershell?

Post by LevB »

Hi all,

is it possible to enable the "Tape job priority" (Prevent this job from being interrupted by source backup jobs) checkbox under "Schedule" for the Tape Jobs via powershell?

I really need to add this functionality to my automation script and set this asap for a lot of jobs. I didn't find this option so far :(

Thanks in advance.

Kind Regads
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 enable the "Tape job priority" option for Tape Jobs via powershell?

Post by oleg.feoktistov » 2 people like this post

Hi Lev,

Though we don't have this option in official tape cmdlets, I think I found the workaround.
Example with one tape job:

Code: Select all

$job = Get-VBRTapeJob -Name 'Backup to Tape Job 1'
$convertedJob = [Veeam.Tape.Core.TapeJob]::Get($job.Id)
$convertedJob.Options.IsStopBySourceJobAllowed = $true
$convertedJob.Update()
Basically, here we present tape job object as a different type, where this property exists and can be modified.

Keep in mind that this approach is not supported and can be considered as a workaround only.

Best regards,
Oleg
LevB
Service Provider
Posts: 4
Liked: never
Joined: Dec 06, 2021 5:18 pm
Full Name: Lev B.
Contact:

Re: How to enable the "Tape job priority" option for Tape Jobs via powershell?

Post by LevB »

Hi Oleg,

thank you very much for this workaround! It works perfectly!

Best regards
Lev
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests