Comprehensive data protection for all workloads
Post Reply
Michael_6835
Enthusiast
Posts: 39
Liked: 2 times
Joined: Feb 05, 2010 4:43 pm
Full Name: Michael Harris
Contact:

Specifying 1 VM in a job

Post by Michael_6835 »

Hello,
I have a job configured to look at a folder in VCenter which contains about 5 vms.
Is there a way for me to run the job, but only have the job run for 1 of the 5 vms?

IE. I made changes to a particular server that I want to replicate (for testing) and I'd rather not kick off the entire job and replicate all vms.
Looking to see if that was possible.

Thanks
foggy
Veeam Software
Posts: 21069
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Specifying 1 VM in a job

Post by foggy »

Michael, how about temporarily excluding other VMs from a job?
Michael_6835
Enthusiast
Posts: 39
Liked: 2 times
Joined: Feb 05, 2010 4:43 pm
Full Name: Michael Harris
Contact:

Re: Specifying 1 VM in a job

Post by Michael_6835 »

That would work.

Will excluding those vms "break" any tracking that Veeam does?
foggy
Veeam Software
Posts: 21069
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Specifying 1 VM in a job

Post by foggy »

No, no issues with that.
yizhar
Service Provider
Posts: 181
Liked: 48 times
Joined: Sep 03, 2012 5:28 am
Full Name: Yizhar Hurwitz
Contact:

Re: Specifying 1 VM in a job

Post by yizhar »

Hi.

To Veeam stuff - please consider this as a feature request.
It should be something simple - like one can do in other backup software such as VDP/VDR from VMware for example.

Thanks,
Yizhar
foggy
Veeam Software
Posts: 21069
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Specifying 1 VM in a job

Post by foggy »

Yes, I believe this has already been requested earlier. However, thanks for the feedback!
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Specifying 1 VM in a job

Post by veremin »

If your VMs have been added to backup/replication jobs as individual objects, not as parts of container, the following script might be helpful. Firstly it will ask you to input a job name and name of VM you’re going to leave. After, that it will get VMs within the given job and exclude them all except the one previously specified:

Code: Select all

$Jobname = Read-Host "Input job name"
$VMToBackup = Read-Host "Input VM name"
$Job = Get-VBRJob | ?{$_.name -eq $Jobname}
$Job | Get-VBRJobObject | ?{$_.name -ne $VMtobackup} | Remove-VBRJobObject 
This one includes them back:

Code: Select all

$Jobname = Read-Host "Input job name"
$Job = Get-VBRJob | ?{$_.name -eq $Jobname}
($Job | Get-VBRJobObject | ?{$_.type -eq "Exclude"}).delete()  
Thanks.
Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 111 guests