Add-WssBackupConfiguration
Add-WssBackupConfiguration
Adds a backup file specification to a volume that is part of a backup.
構文
Parameter Set: Default
Add-WssBackupConfiguration [-Volume] <BackupVolume> [-Configuration] <BackupFileSpec> [ <CommonParameters>]
詳細説明
The Add-WssBackupConfiguration cmdlet adds a backup file specification to a volume that is part of a backup.
パラメーター
-Configuration<BackupFileSpec>
Specifies the backup file specification to add.
エイリアス |
Config |
必須? |
true |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Volume<BackupVolume>
Specifies the volume on which to create the backup file specification.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
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 generates the backup source volume with the added file specification.
例
Example : 1: Add a backup file specification to a volume
This example adds a backup configuration to a backup volume.
The first command gets a list of backup volumes from the server and stores them in the variable named $ContosoBUVolume10.
The second command gets the backup file specification from the fourth item (located in position 3) in the $ContosoBUVolume10 array.
The third command adds the backup file specification in $ContosoBUConfig10 to the sixth item (located in position 5) in the $ContosoBUVolume10 array.
PS C:\> $ContosoBUVolume10 = Get-WssBackupVolume -AllVolumes
PS C:\> $ContosoBUConfig10 = Get-WssBackupConfiguration -Volume $ContosoBUVolume10[3]
PS C:\> Add-WssBackupConfiguration -FileSpec $ContosoBUConfig10 -Volume $ContosoBUVolume10[5]