Get-WBVssBackupOption
Gets a VSS setting from the backup policy.
Syntax
Get-WBVssBackupOption
[-Policy] <WBPolicy>
[<CommonParameters>]
Description
The Get-WBVSSBackupOption cmdlet gets a setting that determines whether the backups created through the WBPolicy object are Volume Shadow Copy Service (VSS) copy backups or VSS full backups. For more information about VSS copy backups and VSS full backups, or to change this setting, refer to the Set-WBVssBackupOption cmdlet.
To use this cmdlet, you must be a member of the Administrators group or Backup Operators group.
Examples
Example 1: Get the VSS setting from the backup policy
PS C:\> $Policy = Get-WBPolicy
PS C:\> Get-WBVssBackupOption -Policy $Policy
This example gets the VSS setting, either VssCopyBackup or VssFullBackup.
The first command stores the result of the Get-WBPolicy cmdlet in the variable named $Policy.
The second command gets the VSS setting from the variable $Policy.
Parameters
-Policy
Specifies the WBPolicy object that this cmdlet gets.
Type: | WBPolicy |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
Microsoft.Windows.ServerBackup.Commands.WBPolicy
Outputs
Related Links
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈