Exclude template from incremental backup

PowerShell script exchange

Exclude template from incremental backup

Veeam Logoby jevao » Tue Aug 11, 2015 4:45 pm

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: Fri Oct 28, 2011 11:38 pm
Full Name: James Collison

Re: Exclude template from incremental backup

Veeam Logoby jevao » Tue Aug 11, 2015 5:14 pm 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: Fri Oct 28, 2011 11:38 pm
Full Name: James Collison

Re: Exclude template from incremental backup

Veeam Logoby jevao » Tue Aug 11, 2015 5:22 pm

Is this the supported/best way to set these options
or are the cmdlets that I should be using?
Thanks
jevao
Enthusiast
 
Posts: 29
Liked: 3 times
Joined: Fri Oct 28, 2011 11:38 pm
Full Name: James Collison

Re: Exclude template from incremental backup

Veeam Logoby v.Eremin » Tue Aug 11, 2015 5:31 pm

The provided code looks good to me. Thanks.
v.Eremin
Veeam Software
 
Posts: 13288
Liked: 971 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 9 guests