PowerShell script exchange
Post Reply
aaron@ARB
Expert
Posts: 138
Liked: 14 times
Joined: Feb 21, 2014 3:12 am
Full Name: ARBCorporationPtyLtd
Contact:

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

Post by aaron@ARB »

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 :)
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

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

Post by veremin »

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.
aaron@ARB
Expert
Posts: 138
Liked: 14 times
Joined: Feb 21, 2014 3:12 am
Full Name: ARBCorporationPtyLtd
Contact:

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

Post by aaron@ARB »

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 :)
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

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

Post by veremin »

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.
aaron@ARB
Expert
Posts: 138
Liked: 14 times
Joined: Feb 21, 2014 3:12 am
Full Name: ARBCorporationPtyLtd
Contact:

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

Post by aaron@ARB » 1 person likes this post

thanks :)
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

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

Post by veremin »

You're welcome. If any particular question regarding PS arises, don't hesitate to let us know. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests