PowerShell script exchange
Post Reply
rdixon01
Influencer
Posts: 24
Liked: 2 times
Joined: Oct 09, 2013 2:30 pm
Full Name: Rick
Contact:

Exclude a Single VM Backup (Not All VM's) within a Job

Post by rdixon01 »

Looking a script that we run that will exclude a VM backup in a job for the next run of the job. After the next job runs (without the excluded VM) Then the exclude vm is returned to the Job. Don't want to exclude all of the VM's in the Backup job. We have times when work is being performed on a server and we do not want a backup to run while work is being performed.
Any help with this would be greatly appreciated.

Rick
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Exclude a Single VM Backup (Not All VM's) within a Job

Post by veremin »

Hi, Rick, how VMs are added to the backup job? As individual objects or as the part of container (folder, datastore, etc.)? Thanks.
rdixon01
Influencer
Posts: 24
Liked: 2 times
Joined: Oct 09, 2013 2:30 pm
Full Name: Rick
Contact:

Re: Exclude a Single VM Backup (Not All VM's) within a Job

Post by rdixon01 »

We are backing up folders which contain the VM's
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Exclude a Single VM Backup (Not All VM's) within a Job

Post by veremin »

In this case, take a look at the script I've already written; should be exactly what you're looking for. Thanks.
haratiz
Lurker
Posts: 1
Liked: never
Joined: Jan 27, 2019 11:15 pm
Full Name: Zahra Harati
Contact:

[MERGED] Exclude Bulk of Servers from the Backup Jobs

Post by haratiz »

We are running Veeam Backup and Replication V 9.5 Update 3. We are in the process of moving VMs in bulk to the new Vcenter environment. We will do 100 servers at a time every few days. When we are moving the VMs, I do not want to run a backup against those VMs. Our configuration in the jobs is per Cluster in vCenter.

Does anyone know a Powershell script that it accepts a list of servers that need to be excluded from the job and then exclude them from the job?

Thanks,
Zahra
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Exclude a Single VM Backup (Not All VM's) within a Job

Post by veremin »

Check the script referenced above, should be something you're looking for. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests