Add-WssBackupVolume

Add-WssBackupVolume

Adds a volume to a scheduled backup policy.

構文

Parameter Set: Default
Add-WssBackupVolume [-BackupPolicy] <ScheduledBackupPolicy> [-BackupVolume] <BackupVolume> [ <CommonParameters>]

詳細説明

The Add-WssBackupVolume cmdlet adds a volume to a scheduled backup policy. Use the cmdlet to add volumes and the files they contain to a backup.

パラメーター

-BackupPolicy<ScheduledBackupPolicy>

Specifies the scheduled backup policy to which to add the volume.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-BackupVolume<BackupVolume>

Specifies the volume to add to the scheduled backup policy.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.BackupVolume

    This cmdlet returns the backup volume.

Example 1: Add a backup volume to a backup policy

This example adds a backup volume to scheduled backup policy.

The first command gets the current backup policy for the computer, makes it editable, and stores it in the variable named $ContosoBUPolicy24.

The second command creates a backup volume from drive F: and stores it in the variable named $ContosoEmpData10.

The third command adds the backup volume that is stored in $ContosoEmpData10 to the scheduled backup policy that is stored in $ContosoBUPolicy24.

PS C:\> $ContosoBUPolicy24 = Get-WBPolicy -Editable
PS C:\> $ContosoEmpData10 = Get-WBVolume –VolumePath F:\
PS C:\> Add-WssBackupVolume -BackupPolicy $ContosoBUPolicy24 -BackupVolume $ContosoEmpData10

関連トピック

Get-WssBackupVolume

Remove-WssBackupVolume