New-VBRJobVssOptions
Short Description
Returns default set of VSS options for job or VM in job.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
ForJob (Default)New-VBRJobVssOptions [-ForJob] [<CommonParameters>]
-
ForObjectNew-VBRJobVssOptions [-ForObject] [<CommonParameters>]
-
ForReplicaJobNew-VBRJobVssOptions [-ForReplicaJob] [<CommonParameters>]
Detailed Description
This cmdlet returns the CVssOptions object. This object contains default VSS settings for backup jobs, replication jobs or selected VMs. Use an appropriate parameter set for each case.
You can modify the settings and use this object to change the VSS settings of a job or VM. Run the Set-VBRJobVssOptionsApplies custom VSS settings to a selected job. cmdlet to apply the VSS settings to a job.
Tip |
|
Save the object to a variable when you customize settings: this variable can be used in several jobs. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ForJob |
Defines that the cmdlet will return the list of the default VSS settings for backup, replication or copy job. |
|
False |
Named |
False |
|
ForObject |
Defines that the cmdlet will return the list of the default VSS settings for VMs. |
|
False |
Named |
False |
|
ForReplicaJob |
Defines that the cmdlet will return the list of the default VSS settings for replication job. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Getting CVssOptions Object for Backup Job
This example shows how to get the CVssOptions object with customized VSS settings for a backup job.
|
$o = New-VBRJobVssOptions -ForJob $o.Enabled = $true $o.GuestFSIndexingType = "Everyfolders" $o.TransactionLogsTruncation = "Always" |
Perform the following steps:
- Run the
New-VBRJobVssOptionscmdlet. Provide theForJobparameter. Save the result to the$ovariable. - Modify the VSS settings. Specify the following settings:
- Provide the
$truevalue for theEnabledproperty of the$ovariable. - Provide the
Everyfoldersvalue for theGuestFSIndexingTypeproperty of the$ovariable. - Provide the
Alwaysvalue for theTransactionLogsTruncationproperty of the$ovariable.
- Provide the