Tape Backup Job options for Media Pool

PowerShell script exchange

Tape Backup Job options for Media Pool

Veeam Logoby David_PBHK » Thu Oct 17, 2013 2:42 am

Support case ID: 00461077

Hi all,

As I want to change the media pool of tape backup on specific day, I want to use script to change the "Media Pool for full backups". But I can't find the job parameter in google or veeam doc, and I don't know how to list the joboptions in veeam powershell console. Please help.

$Job = Get-VBRTapeJob -Name $JobName
$JobNameObjectOptions = $Job.getoptions()
$JobNameObjectOptions.Options."Media Pool for full backups" = "Another Medial Pool"
David_PBHK
Novice
 
Posts: 3
Liked: never
Joined: Thu Oct 17, 2013 2:15 am
Full Name: David Yeung

Re: Tape Backup Job options for Media Pool

Veeam Logoby David_PBHK » Thu Oct 17, 2013 10:28 am

After searching, I find something, but when the job start, it seem to be rollback to gui setting (use back monthlymediapool when backup job start).
$dailymediapool_id = "d50a5cf9-a9fa-4a8a-89df-33a0267f4bcb"
$monthlymediapool_id = "9b069ef8-d82b-441b-88dd-dd00519da652"

$Job = Get-VBRTapeJob -name "Backup To Tape Job"
$Options = $Job.GetOptions()
$Options.options.rootnode.tapejobbackupoptions.tapefullmediapoolid = $dailymediapool_id
$Job.SetOptions($Options)
David_PBHK
Novice
 
Posts: 3
Liked: never
Joined: Thu Oct 17, 2013 2:15 am
Full Name: David Yeung

Re: Tape Backup Job options for Media Pool

Veeam Logoby v.Eremin » Thu Oct 17, 2013 11:29 am 1 person likes this post

Hi, David.

It seems that for now media pool can’t be set via PowerShell, at least, I couldn’t find a way how it can be done. Though, thank you for the feedback; we will consider further snap-in improvements in one of the future releases/patches.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Tape Backup Job options for Media Pool

Veeam Logoby David_PBHK » Fri Oct 18, 2013 2:34 am

Thanks you. Hope Veeam can update this setting soon.
David_PBHK
Novice
 
Posts: 3
Liked: never
Joined: Thu Oct 17, 2013 2:15 am
Full Name: David Yeung

Re: Tape Backup Job options for Media Pool

Veeam Logoby v.Eremin » Fri Oct 18, 2013 10:20 am

Currently, in PS snap-in many tape job settings can be only specified only during job creation. However, as mentioned, above, we are planning to improve this functionality in one of the next releases.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

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