Copy-VBRJob

PowerShell script exchange

Copy-VBRJob

Veeam Logoby ThomasMc » Thu Dec 01, 2011 7:48 pm

Still an issue with this one and I noticed that you might be doing an update soon :) any chance this could be looked at and included, it now seems to not copy the objects in as per the original problem but now it creates "Legacy" jobs(even when the original isn't a legacy job)

I also uncovered a Replica Prefix in the shell, I'm assuming that this is for future as it doesn't work just yet but that feature would be awesome as well :D
ThomasMc
Expert
 
Posts: 293
Liked: 17 times
Joined: Wed Apr 13, 2011 12:45 pm
Full Name: Thomas McConnell

Re: Copy-VBRJob

Veeam Logoby Gostev » Thu Dec 01, 2011 8:02 pm

What is the support case number for this issue?
Gostev
Veeam Software
 
Posts: 21390
Liked: 2349 times
Joined: Sun Jan 01, 2006 1:01 am
Location: Baar, Switzerland

Re: Copy-VBRJob

Veeam Logoby ThomasMc » Thu Dec 01, 2011 8:09 pm

I've never opened a SC with Veeam before so probably now is a good time to start :)
ThomasMc
Expert
 
Posts: 293
Liked: 17 times
Joined: Wed Apr 13, 2011 12:45 pm
Full Name: Thomas McConnell

Re: Copy-VBRJob

Veeam Logoby Gostev » Thu Dec 01, 2011 8:12 pm

Yes, it has to go through support and they have to reproduce/confirm before this can be escalated into development. Thanks!
Gostev
Veeam Software
 
Posts: 21390
Liked: 2349 times
Joined: Sun Jan 01, 2006 1:01 am
Location: Baar, Switzerland

Re: Copy-VBRJob

Veeam Logoby Sethbartlett » Thu Dec 01, 2011 8:22 pm

Fully reproduced/confirmed, Copy-VBRJob has been broke since 5 :)
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Sethbartlett
Expert
 
Posts: 282
Liked: 25 times
Joined: Wed Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett

Re: Copy-VBRJob

Veeam Logoby ThomasMc » Thu Dec 01, 2011 8:33 pm

Sethbartlett wrote:Fully reproduced/confirmed, Copy-VBRJob has been broke since 5 :)

Cheers Seth, my ticket is 5157782
ThomasMc
Expert
 
Posts: 293
Liked: 17 times
Joined: Wed Apr 13, 2011 12:45 pm
Full Name: Thomas McConnell

Re: Copy-VBRJob

Veeam Logoby Gostev » Thu Dec 01, 2011 8:45 pm

Sethbartlett wrote:Fully reproduced/confirmed, Copy-VBRJob has been broke since 5 :)

And you can guess why it was not fixed... nobody had ever created a support case before!
Gostev
Veeam Software
 
Posts: 21390
Liked: 2349 times
Joined: Sun Jan 01, 2006 1:01 am
Location: Baar, Switzerland

Re: Copy-VBRJob

Veeam Logoby ThomasMc » Thu Dec 01, 2011 8:59 pm

Gostev wrote:
Sethbartlett wrote:Fully reproduced/confirmed, Copy-VBRJob has been broke since 5 :)

And you can guess why it was not fixed... nobody had ever created a support case before!


Point taken :) In my defense though I assumed it would have to had been reworked to do it via the GUI copy a backup job
ThomasMc
Expert
 
Posts: 293
Liked: 17 times
Joined: Wed Apr 13, 2011 12:45 pm
Full Name: Thomas McConnell

Re: Copy-VBRJob

Veeam Logoby Gostev » Thu Dec 01, 2011 9:34 pm

Job cloning is implemented in the Enteprise Manager functionality, so that's a bit different.
Gostev
Veeam Software
 
Posts: 21390
Liked: 2349 times
Joined: Sun Jan 01, 2006 1:01 am
Location: Baar, Switzerland

Re: Copy-VBRJob

Veeam Logoby ThomasMc » Thu Dec 01, 2011 10:18 pm

Just installed EM to try it out, the clone feature is pretty cool with the rename functionality, if we could get that for the cmdlet then I would be very happy :)
ThomasMc
Expert
 
Posts: 293
Liked: 17 times
Joined: Wed Apr 13, 2011 12:45 pm
Full Name: Thomas McConnell

Re: Copy-VBRJob

Veeam Logoby pizzim13 » Wed Dec 07, 2011 3:00 pm

ThomasMc wrote:Just installed EM to try it out, the clone feature is pretty cool with the rename functionality, if we could get that for the cmdlet then I would be very happy :)


Would Export-VBRJob & Import-VBRJob work for you? I have used these in the past to clone jobs with all their settings.
pizzim13
Enthusiast
 
Posts: 86
Liked: 6 times
Joined: Thu Apr 21, 2011 7:37 pm

Re: Copy-VBRJob

Veeam Logoby jteager » Wed Dec 07, 2011 4:43 pm

That'll keep the settings, but not the objects. If I recall it can also act-up with VSS (though I haven't tested it in a while). Handy workaround though, and it does do the export into fairly simple XML.

*EDIT*: Actually, looks like there's some issue(s) with Export-VBRJob in v6, so be warned. Seth and I are tossing that up internally.
jteager
Veeam Software
 
Posts: 10
Liked: never
Joined: Mon Mar 28, 2011 2:13 pm
Full Name: Justin Teager

Re: Copy-VBRJob

Veeam Logoby pizzim13 » Wed Dec 07, 2011 4:51 pm

Export-VBRJob has a -IncludeObjects parameter. What issues have you seen with the VSS? With my tests the encrypted credentials were exported and I was able to use them against other VMs without modification. I ask because I may be using this functionality in an upcoming project.

Edit: Tested only with v5
pizzim13
Enthusiast
 
Posts: 86
Liked: 6 times
Joined: Thu Apr 21, 2011 7:37 pm

Re: Copy-VBRJob

Veeam Logoby Sethbartlett » Wed Dec 07, 2011 5:02 pm

With 6, we are noticing some problems with Export-VBRJob that me and Justin are taking a look at. After lunch we'll post our finds :)
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Sethbartlett
Expert
 
Posts: 282
Liked: 25 times
Joined: Wed Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett

Re: Copy-VBRJob

Veeam Logoby Sethbartlett » Wed Dec 07, 2011 9:25 pm

Export-VBRJob seems to be failing, some issues with Reflection

Code: Select all
Export-VBRJob : There was an error reflecting type 'System.Collections.Generic.List`1[Veeam.Backup.PowerShell.Model.ExternalJob]'.


Something painfully wrong with Veeam.Backup.PowerShell.Model.ExternalJob currently during any reflection, tried re-writing the code by hand through powershell, no dice.
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Sethbartlett
Expert
 
Posts: 282
Liked: 25 times
Joined: Wed Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett

Next

Return to PowerShell



Who is online

Users browsing this forum: No registered users and 2 guests