Trying to find doco for Veeam.Backup.Model.CDomBackupStorage

PowerShell script exchange

Trying to find doco for Veeam.Backup.Model.CDomBackupStorage

Veeam Logoby aaron@ARB » Fri Apr 22, 2016 9:35 am

hi all.. Just looking at getoptions() in relation to backup jobs and just trying to find what options are available in

Code: Select all
Options                     : Veeam.Backup.Common.CDomContainer
HvReplicaTargetOptions      : Veeam.Backup.Model.CDomHvReplicaTargetOptions
ReIPRulesOptions            :
BackupStorageOptions        : Veeam.Backup.Model.CDomBackupStorageOptions
BackupTargetOptions         : Veeam.Backup.Model.CDomBackupTargetOptions
HvSourceOptions             : Veeam.Backup.Model.CDomHvSourceOptions
JobOptions                  : Veeam.Backup.Model.CDomJobOptions
ViNetworkMappingOptions     : Veeam.Backup.Model.CDomViNetworkMappingOptions
HvNetworkMappingOptions     : Veeam.Backup.Model.CDomHvNetworkMappingOptions
NotificationOptions         : Veeam.Backup.Model.CDomNotificationOptions
JobScriptCommand            : Veeam.Backup.Model.CDomJobScriptCommand
ViReplicaTargetOptions      : Veeam.Backup.Model.CDomViReplicaTargetOptions
CloudReplicaTargetOptions   : Veeam.Backup.Model.CDomCloudReplicaTargetOptions
ViSourceOptions             : Veeam.Backup.Model.CDomViSourceOptions
GenerationPolicy            : Veeam.Backup.Model.CDomGenerationPolicy
SanIntegrationOptions       : Veeam.Backup.Model.CDomSanIntegrationOptions
ReplicaSourceOptions        : Veeam.Backup.Model.CDomReplicaSourceOptions
SqlLogBackupOptions         : Veeam.Backup.Model.CDomSqlLogBackupOptions
FailoverPlanOptions         : Veeam.Backup.Model.CDomFailoverPlanOptions
ViCloudReplicaTargetOptions : Veeam.Backup.Model.CDomViCloudReplicaTargetOptions


I have found what I wanted (changing retention days) but that was through the forums rather than my being able to locate the option myself, so just wondering where the documentation for the above is kept, Veeam.Backup.Model.CDomBackupStorageOptions in this case for retention days

Thanks all :)
aaron@ARB
Expert
 
Posts: 112
Liked: 12 times
Joined: Fri Feb 21, 2014 3:12 am
Full Name: Aaron @ ARB

Re: Trying to find doco for Veeam.Backup.Model.CDomBackupSto

Veeam Logoby v.Eremin » Fri Apr 22, 2016 10:26 am

This is most comprehensive and detailed documentation regarding our PS snap-in.

As to different internal properties, methods, etc., those are typically not documented due to their changeable nature (might be modified with every product release, update, etc.). Thus, it's more or less trial and error approach of correlating PS properties with their GUI analogues.

Fortunately, a lot of them have self-descriptive names.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Trying to find doco for Veeam.Backup.Model.CDomBackupSto

Veeam Logoby aaron@ARB » Fri Apr 22, 2016 10:32 am

no worries.. as i say, i have working what i was trying to do, but i dont like just cutting and pasting powershell commands without knowing where they came from in terms of learning how it hangs together but i guess at this point i will just have to accept that some things are just black magic :)
aaron@ARB
Expert
 
Posts: 112
Liked: 12 times
Joined: Fri Feb 21, 2014 3:12 am
Full Name: Aaron @ ARB

Re: Trying to find doco for Veeam.Backup.Model.CDomBackupSto

Veeam Logoby v.Eremin » Fri Apr 22, 2016 10:48 am

The general approach to change job settings is the following:

1) You get particular job(s) settings of which you want to modify. (Get-VBRJob)
2) Assign it to a variable. ($Job)
3) Get its options. ($Job.GetOptions())
4) Assign it to a variable. ($Options)
5) Working with the $Options variable, understand what specific settings need to be changed.
6) Specify new values for those.
7) Assign modified $Options variable to the $Job variable ($Job.SetOptions($Options)).

Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Trying to find doco for Veeam.Backup.Model.CDomBackupSto

Veeam Logoby aaron@ARB » Fri Apr 22, 2016 10:49 am 1 person likes this post

thanks :)
aaron@ARB
Expert
 
Posts: 112
Liked: 12 times
Joined: Fri Feb 21, 2014 3:12 am
Full Name: Aaron @ ARB

Re: Trying to find doco for Veeam.Backup.Model.CDomBackupSto

Veeam Logoby v.Eremin » Fri Apr 22, 2016 11:08 am

You're welcome. If any particular question regarding PS arises, don't hesitate to let us know. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 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 7 guests