-
- 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
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
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
-
- 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
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:
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.
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)
Hope this helps.
Thanks.
-
- 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
I believe you have a small error/typo, "WAN Target" is "KbBlockSize256".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”.
-
- 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
v.Eremin & tsighter, thanks a lot for the help this works very well
-
- 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
Yep, a typo, indeed. Copy/Paste as its worst.I believe you have a small error/typo, "WAN Target" is "KbBlockSize256".
Have already fixed it.
Thanks for correcting me.
Who is online
Users browsing this forum: No registered users and 11 guests