PowerShell script exchange
Post Reply
jevao
Enthusiast
Posts: 29
Liked: 3 times
Joined: Oct 28, 2011 11:38 pm
Full Name: James Collison
Contact:

Exclude template from incremental backup

Post by jevao »

Just upgraded to Veeam 8. Receiving error "template processing is disabled".
Need to uncheck "Jobs -> Edit -> Virtual Machines -> Exclusions -> Templates -> Exclude template from incremental backup"
Cannot figure out how to do this in powershell.
Thanks for any help.
jevao
Enthusiast
Posts: 29
Liked: 3 times
Joined: Oct 28, 2011 11:38 pm
Full Name: James Collison
Contact:

Re: Exclude template from incremental backup

Post by jevao » 1 person likes this post

Figured out how to do it.

Code: Select all

$job = get-vbrjob -name "jobname"
$opt = $job.getoptions()
$opt.ViSourceOptions.BackupTemplates = $True
$opt.ViSourceOptions.BackupTemplatesOnce = $False
$job.setoptions($opt)
jevao
Enthusiast
Posts: 29
Liked: 3 times
Joined: Oct 28, 2011 11:38 pm
Full Name: James Collison
Contact:

Re: Exclude template from incremental backup

Post by jevao »

Is this the supported/best way to set these options
or are the cmdlets that I should be using?
Thanks
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Exclude template from incremental backup

Post by veremin »

The provided code looks good to me. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests