Add-WBVolume

Windows Server 2012 R2 and Windows 8.1

Add-WBVolume

Adds the list of source volumes to the backup policy.

구문

Parameter Set: Default
Add-WBVolume [-Policy] <WBPolicy> [-Volume] <WBVolume[]> [ <CommonParameters>]




자세한 설명

The Add-WBVolume cmdlet adds a list of source volumes to a WBPolicy object.

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

매개 변수

-Policy<WBPolicy>

Specifies a WBPolicy object that contains the backup policy to update.


별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Volume<WBVolume[]>

Specifies an array of volumes to add to the WBPolicy object.


별칭

없음

필수 여부

true

위치

2

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

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

입력

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

  • WBVolume [], WBPolicy

    The Add-WBVolume cmdlet accepts WBVolume objects, which contain a new list of source volumes for the backup, and WBPolicy objects as input.


출력

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

  • WBVolume[]

    The Add-WBVolume cmdlet outputs the list of WBVolume objects in the WBPolicy object, including the WBVolume objects that the cmdlet just added.


참고

  • 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 Get-WBPolicy cmdlet with the Editable parameter. The New-WBPolicy cmdlet creates a new WBPolicy object that is already in edit mode.

예제

Example 1: Add a list of volumes to a backup policy

This example adds a list of volumes for backup to the WBPolicy object.

The first command stores the output of the Get-WBVolume cmdlet in the variable named $Volumes.

The second command calls the Get-WBPolicy cmdlet and assigns the result to the $Policy variable.

The third command adds the volumes in the $Volumes variable to the backup policy.


PS C:\> $Volumes = Get-WBVolume
PS C:\> $Policy = Get-WBPolicy
PS C:\> Add-WBVolume -Policy $Policy -Volume $Volumes

관련 항목

커뮤니티 추가 항목

추가
표시: