PowerShell script exchange
Tobias_Elfstrom
Enthusiast
Posts: 84 Liked: 8 times
Joined: Jul 04, 2012 6:32 am
Full Name: Tobias Elfstrom
Contact:
Post
by Tobias_Elfstrom » Feb 13, 2015 9:54 am
this post
Is there currently any what to add objects to an existing tape job with powershell?
If you do:
Code: Select all
$tapejob = Get-VBRTapeJob -Name Name_of_tapejob
You have the objects that are included in the readonly attribute
Is there any way for me to add objects here ? (other that using the GUI)
Thanks.
veremin
Product Manager
Posts: 20735 Liked: 2402 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Post
by veremin » Feb 13, 2015 10:00 am
this post
Is it files to tape or backups to tape job?
Tobias_Elfstrom
Enthusiast
Posts: 84 Liked: 8 times
Joined: Jul 04, 2012 6:32 am
Full Name: Tobias Elfstrom
Contact:
Post
by Tobias_Elfstrom » Feb 13, 2015 10:08 am
this post
In this case backups to tape
veremin
Product Manager
Posts: 20735 Liked: 2402 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Post
by veremin » Feb 13, 2015 11:50 am
this post
The last question - do you need to replace tape job source or just add to it another backup job ? Thanks.
Tobias_Elfstrom
Enthusiast
Posts: 84 Liked: 8 times
Joined: Jul 04, 2012 6:32 am
Full Name: Tobias Elfstrom
Contact:
Post
by Tobias_Elfstrom » Feb 13, 2015 1:52 pm
this post
I would consider both options... if both where possible
veremin
Product Manager
Posts: 20735 Liked: 2402 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Post
by veremin » Feb 13, 2015 2:06 pm
this post
You can replace a source of backup to tape job via this script:
Code: Select all
asnp VeeamPSSnapin
$TapeJob = Get-VBRTapeJob -Name "Name of your tape job"
$NewObject = Get-VBRJob -Name "Name of your backup job"
Set-VBRBackupToTapeJob -Job $TapeJob -Object $NewObject
As to adding another backup job to the source of backup to tape job, currently it's not possible. No matter what script you write, the source gets overwritten, not appended.
However, we do consider fixing that down the road.
Thanks.
Tobias_Elfstrom
Enthusiast
Posts: 84 Liked: 8 times
Joined: Jul 04, 2012 6:32 am
Full Name: Tobias Elfstrom
Contact:
Post
by Tobias_Elfstrom » Feb 13, 2015 2:10 pm
this post
Okej, I will work with replacing then.
Thanks.
Users browsing this forum: Bing [Bot] and 2 guests