Remove-WssBackupConfiguration
Remove-WssBackupConfiguration
Removes a file specification from a backup volume.
Sintaxis
Parameter Set: Default
Remove-WssBackupConfiguration [-Volume] <BackupVolume> [-Configuration] <BackupFileSpec> [ <CommonParameters>]
Descripción detallada
The Remove-WssBackupConfiguration cmdlet removes a file specification from a backup volume. When you remove a file specification from a backup volume, the files and folders in the file specification are no longer backed up with the backup volume.
Parámetros
-Configuration<BackupFileSpec>
Specifies the backup file specification to remove from the volume.
Alias |
Config |
¿Requerido? |
true |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-Volume<BackupVolume>
Specifies the volume from which to remove the file specification.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
- Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.BackupVolume
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.BackupFileSpec
This cmdlet generates an object that indicates whether to include or exclude files or folders in the server backup.
Ejemplos
Example 1: Remove a file specification from a backup volume
This command removes the backup file specification from a backup volume.
The first command gets the backup volumes from the server and stores them in the $ContosoBUVolume110 variable.
The second command gets the backup file specification from the first item (located in position 0) in $ContosoBUVolume110 and stores the backup file specification in the $ContosoBUFilespec05 variable.
The third command removes the backup file specification from the second item (located in position 1) in $ContosoBUFilespec05.
PS C:\> $ContosoBUVolume110 = Get-WssBackupVolume -AllVolumes
PS C:\> $ContosoBUFilespec05 = Get-WssBackupConfiguration –Volume $ContosoBUVolume110[0]
PS C:\> Remove-WssBackupConfiguration -Configuration $ContosoBUFilespec05[1]