Add-WssBackupConfiguration

Add-WssBackupConfiguration

Adds a backup file specification to a volume that is part of a backup.

Sintaxis

Parameter Set: Default
Add-WssBackupConfiguration [-Volume] <BackupVolume> [-Configuration] <BackupFileSpec> [ <CommonParameters>]

Descripción detallada

The Add-WssBackupConfiguration cmdlet adds a backup file specification to a volume that is part of a backup.

Parámetros

-Configuration<BackupFileSpec>

Specifies the backup file specification to add.

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 on which to create the backup 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.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

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

    This cmdlet generates the backup source volume with the added file specification.

Ejemplos

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]

Temas relacionados

Get-WssBackupConfiguration

New-WssBackupConfiguration

Remove-WssBackupConfiguration