Add-WssBackupConfiguration
Adds a backup file specification to a volume that is part of a backup.
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.
PS C:\>$ContosoBUVolume10 = Get-WssBackupVolume -AllVolumes PS C:\>$ContosoBUConfig10 = Get-WssBackupConfiguration -Volume $ContosoBUVolume10[3] PS C:\>Add-WssBackupConfiguration -FileSpec $ContosoBUConfig10 -Volume $ContosoBUVolume10[5]
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.
Specifies the backup file specification to add.
Type: | BackupFileSpec |
Aliases: | Config |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the volume on which to create the backup file specification.
Type: | BackupVolume |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.BackupVolume
This cmdlet generates the backup source volume with the added file specification.