New-WssBackupTarget

New-WssBackupTarget

Creates a backup target from a backup disk.

構文

Parameter Set: Disk
New-WssBackupTarget [-Disk] <BackupDisk> [[-Label] <String> ] [[-PreserveExistingBackups]] [ <CommonParameters>]

詳細説明

The New-WssBackupTarget cmdlet creates a backup target from a backup disk. A backup target defines storage locations for backups.

パラメーター

-Disk<BackupDisk>

Specifies the backup disk that stores backups.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

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

True (ByPropertyName)

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

false

-Label<String>

Specifies the label for the backup storage location.

エイリアス

なし

必須?

false

位置は?

2

既定値

なし

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

false

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

false

-PreserveExistingBackups

Indicates that the cmdlet keeps existing backups on the disk in the BackupDisk parameter when the cmdlet adds a new backup to the disk.

エイリアス

なし

必須?

false

位置は?

3

既定値

なし

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

false

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

false

<CommonParameters>

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

入力

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

出力

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

  • Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.BackupTarget

    This cmdlet generates the backup target.

Example 1: Create a backup target from a backup disk

This command creates a backup target labeled Backup Disk 1 from the second item, located in position 1, of the array that is stored in the $disks variable.

PS C:\> New-WssBackupTarget -Disk $disks[1] -Label "Backup Disk 1" -PreserveExistingBackups

関連トピック

Add-WssBackupTarget

Get-WssBackupTarget

Remove-WssBackupTarget