Set-WBVssBackupOption

Windows Server 2012 R2 and Windows 8.1

Set-WBVssBackupOption

Sets a value that determines the VSS setting in the backup policy.

구문

Parameter Set: Default
Set-WBVssBackupOption [-Policy] <WBPolicy> [[-VssCopyBackup]] [[-VssFullBackup]] [ <CommonParameters>]




자세한 설명

The Set-WBVssBackupOptions cmdlet sets a value that determines whether the backups created through the WBPolicy object are Volume Shadow Copy Service (VSS) copy backups or VSS full backups.

Create VSS full backups if you are not using any other product to back up applications. This option updates the backup history of each file and deletes the application log files. Create VSS copy backups if you are using another product to back up applications that are on the volumes included in the backup. This option retains the application log files.

To use this cmdlet, you must be a member of the Administrators group or Backup Operators group.

매개 변수

-Policy<WBPolicy>

Specifies the WBPolicy object to update.


별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByValue)

와일드카드 문자 허용 여부

false

-VssCopyBackup

Indicates that the backups in the backup policy are VSS copy backups.


별칭

없음

필수 여부

false

위치

2

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-VssFullBackup

Indicates that the backups in the backup policy are VSS full backups.


별칭

없음

필수 여부

false

위치

3

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(http://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • WBPolicy

    The Set-WBVssBackupOptions cmdlet queries the specified WBPolicy object.


출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • None

참고

  • The WBPolicy object must be in edit mode. To put the WBPolicy object in edit mode for a policy that you set as the scheduled backup policy, use the New-WBPolicy cmdlet with the Editable parameter. The New-WBPolicy cmdlet creates a new WBPolicy object that is already in edit mode.

예제

Example 1: Set the VSS backup policy

This example sets the backup policy to create backups that are VSS full backups.

The first command stores the result of the Get-WBPolicy cmdlet in the variable named $Policy.

The second command sets the VSS setting for the backup policy in the $Policy variable.


PS C:\> $Policy = Get-WBPolicy
PS C:\> Set-WBVssBackupOption -Policy $Policy -VssFullBackup

관련 항목


Get-WBVssBackupOptions

커뮤니티 추가 항목

추가
표시: