PowerShell script exchange
Post Reply
juacosta
Novice
Posts: 6
Liked: never
Joined: May 05, 2013 2:00 pm
Full Name: Juan Ramon Acosta
Contact:

How to set "Storage Optimizations" Advanced Settings with PS

Post by juacosta »

Can you help with some information on how to set the "Storage Optimization" to "LAN target" using the Power Shell Commandlets in Veeam Backup.

I am able to set all the settings bellow but not the Optinization

#Set Backup Job Options
$JobNameObjectOptions = $JobNameObject.GetOptions()
#$JobNameObjectOptions.BackupStorageOptions.Optimizations = "LAN target"
$JobNameObjectOptions.BackupStorageOptions.RetainCycles = $RetainCyclesadd
$JobNameObjectOptions.JobOptions.SourceProxyAutoDetect = $SourceProxyAutoDetectadd
$JobNameObjectOptions.BackupStorageOptions.RetainDays = $RetainDaysadd
$JobNameObjectOptions.BackupTargetOptions.Algorithm = $Algorithmadd
veremin
Product Manager
Posts: 20415
Liked: 2305 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: How to set "Storage Optimizations" Advanced Settings wit

Post by veremin » 3 people like this post

You’re unable to set these options because .BackupStorageOptions.Optimizations doesn’t even exist.

In order to set “Lan Target” in Storage optimization settings the following script needs to be implemented:

Code: Select all

asnp VeeamPSSnapin
$Job = Get-VBRJob -name "Name of your Job"
$OptionsToSet = $Job.GetOptions()
$OptionsToSet.BackupStorageOptions.StgBlockSize = "KbBlockSize512"
$Job.SetOptions($OptionsToSet) 
Additionally, if you’re willing to set “Local Target (16TB+)”, then replace “KbBlockSize512” with “KbBlockSize8192”. In case of “Local Target” with “KbBlockSize1024”. Finally, in case of “WAN Target” with “KbBlockSize256”.

Hope this helps.
Thanks.
tsightler
VP, Product Management
Posts: 6035
Liked: 2860 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: How to set "Storage Optimizations" Advanced Settings wit

Post by tsightler » 1 person likes this post

v.Eremin wrote:Additionally, if you’re willing to set “Local Target (16TB+)”, then replace “KbBlockSize512” with “KbBlockSize8192”. In case of “Local Target” with “KbBlockSize1024”. Finally, in case of “WAN Target” with “KbBlockSize512”.
I believe you have a small error/typo, "WAN Target" is "KbBlockSize256".
juacosta
Novice
Posts: 6
Liked: never
Joined: May 05, 2013 2:00 pm
Full Name: Juan Ramon Acosta
Contact:

Re: How to set "Storage Optimizations" Advanced Settings wit

Post by juacosta »

v.Eremin & tsighter, thanks a lot for the help this works very well
veremin
Product Manager
Posts: 20415
Liked: 2305 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: How to set "Storage Optimizations" Advanced Settings wit

Post by veremin » 1 person likes this post

I believe you have a small error/typo, "WAN Target" is "KbBlockSize256".
Yep, a typo, indeed. Copy/Paste as its worst.

Have already fixed it.

Thanks for correcting me.
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests