Page 1 of 1

Script to enable BitLooker for all existing jobs.

Posted: Jan 12, 2016 11:30 am
by v.Eremin
So, you've just upgraded to version 9.

However, by default, new technology called BitLooker allowing customers to easily find and reduce useless chunks of data congesting their backup storage resources is disabled for all existing jobs to ensure the jobs do not change previous behaviors.

If you want to take an advantage of this new technology and don't want to change settings of all jobs manually, here's a short script for you that is supposed to make your life easier:

Code: Select all

asnp VeeamPSSNapin
foreach ($Job in Get-VBRJob | where {$_.JobType -eq "Backup" -or $_.JobType -eq "Replica"})
{
$Options = $Job.GetOptions()
$Options.ViSourceOptions.DirtyBlocksNullingEnabled = $True
$Job.SetOptions($Options)
}
Thanks.

Re: Script to enable BitLooker for all existing jobs.

Posted: Jan 13, 2016 5:14 pm
by sbaltic
And where can i put this script?

Re: Script to enable BitLooker for all existing jobs.

Posted: Jan 13, 2016 5:17 pm
by sbaltic
OK, sorry. This is the PS script .... my bad.

Re: Script to enable BitLooker for all existing jobs.

Posted: Jan 14, 2016 10:25 am
by v.Eremin
You can run it either from VB&R server (Menu -> PowerShell) or from ordinary Windows PowerShell console. In former case, the first line that is supposed to add VB&R PowerShell snap-in is not needed. Thanks.

[MERGED] Version 9 Powershell

Posted: Jan 14, 2016 9:06 pm
by jartisensi
I am trying to set the new option for VBR of Exclude deleted file blocks (recommended).
I have tried the $Job.getOptions() but I don't get anything related to advanced storage.
Anything help would be appreciated - BTW support couldn't help me on this either.

Re: Script to enable BitLooker for all existing jobs.

Posted: Jan 15, 2016 9:32 am
by v.Eremin
BitLooker options can be found in the $Options.ViSourceOptions. The parameter responsible for enabling and disabling exclusion of deleted file blocks is called DirtyBlocksNullingEnabled (bool). Thanks.

[MERGED] Exclude deleted file blocks on all jobs

Posted: Apr 26, 2016 12:46 pm
by prwfwrd
We recently upgraded to Veeam 9 and want to use this option. However, we have several hundred jobs and rather than having to go edit them all manually, has anybody figured out a way to set this option for all jobs either via SQL or PowerShell? I opened a case # 01778069 and was told to inquire here. Thanks!

Re: Script to enable BitLooker for all existing jobs.

Posted: Apr 26, 2016 1:29 pm
by foggy
Paul, PowerShell script for that is right in the first post of this thread. Thanks.