Skip to content
Luca Dell'Oca Principal Cloud Architect @Veeam
Virtual To The Core Virtual To The Core

Virtualization blog, the italian way.

  • Media
  • About me
Virtual To The Core
Virtual To The Core

Virtualization blog, the italian way.

Check multiple job settings in Veeam Backup & Replication with Powershell

Luca Dell'Oca, September 16, 2013September 20, 2015

In a Veeam Backup & Replication environment with a high number of jobs, being sure the configured settings are all the same can be a tough task. Even if there are defined procedures to create new jobs, and every IT admin has these procedures, an error can always happen.

Look at this example. You are using a series of network storage repositories, so you decided the best setting for deduplication ratio is “LAN target”, that is 512KB block size. When different jobs are created at different times, by different admins, it can happen this parameter is configured wrong (also, because is not the default one). If you have few jobs to check, you can think about opening all of them one by one anche verify this parameter, but as the number of jobs grows, these checks becomes nearly impossible.

Even if the best solution would be an IT automation tool like Puppet, that would be able to check and adjust discrepancies, a nice solution is to leverage the complete Powershell support offered by Veeam Backup & Replication.

First, you need to load Veeam snap-in in powershell:

#Initialize Veeam PS Snapin
asnp VeeamPSSnapin -ErrorAction Continue

Then, use one of your job as input (it does not matter which one) for the script, and retrieve the available options:

#Get the list of available Job Options
Get-VBRJobOptions -Job "Job Name"

VBR-JobOptions

From here, you can retrieve the sub-options of a primary option:

#Get the list of sub-options of a given Option 
$job = Get-VBRJob -Name "Job Name"
$option = $job.GetOptions()
$option.SanIntegrationOptions

Options.SanIntegrationsOptions

In this example I checked if the job is using Storage Snapshots. You can use the same method to retrieve several information. For example, you can find out retention policies, compression or deduplication, like this:

#Get the list of sub-options of a given Option
$job = Get-VBRJob -Name "Job Name"
$option = $job.GetOptions()
$option.BackupStorageOptions

option.BackupStorageOptions

Once you know how to call a given parameter, you can build a table that can show you all these parameters at once, for all your jobs:

#Get Desired Job options from all your Backup Jobs

Get-VBRJob | ? {$_.jobtype -eq "Backup"} |
Select-Object -Property @{N="Job Name"; E={$_.name}},
@{N = "Compression Level" ; E = {$_.GetOptions().BackupStorageOptions.CompressionLevel}},
@{N = "Dedup Block Size" ; E = {$_.GetOptions().BackupStorageOptions.StgBlockSize}},
@{N = "SAN Integration" ; E = {$_.GetOptions().SanIntegrationOptions.UseSanSnapshots}} |
Format-Table -AutoSize

Table of Job Settings

In this way, it’s easy to find out like in my example that some jobs has a wrong compression level (5 is Optimal in the GUI, while 6 is High), or a wrong Dedup Block Size, or which job is using Storage Snapshots. With these informations at hand, it’s much easier to level all your jobs.

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
Tech backupcheckjobjobsoptionsparameterspowershellreplicationveeam

Post navigation

Previous post
Next post

Search

Sponsors

Latest Posts

  • Migrate WSL (Windows Subsystem for Linux) to a new computer
  • Pass keystrokes to a pfSense virtual machine to install it automatically
  • Automatically deploy pfSense with Terraform and Ansible
  • My Automated Lab project: #6 Create a S3 Bucket with Terraform
  • My Automated Lab project: #5 Deploy a Linux vSphere VM with Terraform and custom disks
©2025 Virtual To The Core | WordPress Theme by SuperbThemes
We use cookies to ensure that we give you the best experience on our website, and to collect anonymous data regarding navigations stats using 3rd party plugins; they all adhere to the EU Privacy Laws. If you continue to use this site we will assume that you are ok with it.OkNoPrivacy Policy